We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ebd68c commit 1bf34b0Copy full SHA for 1bf34b0
src/client/import-shims.ts
@@ -15,7 +15,7 @@ export const patchEsm = () => {
15
export const patchBrowser = async (): Promise<d.CustomElementsDefineOptions> => {
16
// @ts-ignore
17
const importMeta = import.meta.url;
18
- const regex = new RegExp(`\/${NAMESPACE}(\.esm)?\.js$`);
+ const regex = new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`);
19
const scriptElm = Array.from(doc.querySelectorAll('script')).find(s => (
20
regex.test(s.src) ||
21
s.getAttribute('data-namespace') === NAMESPACE
0 commit comments