@jsenv/plugin-bundling 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-bundling",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@jsenv/sourcemap": "1.0.10",
|
|
32
32
|
"acorn-import-assertions": "1.8.0",
|
|
33
33
|
"lightningcss": "1.19.0",
|
|
34
|
-
"rollup": "3.20.
|
|
34
|
+
"rollup": "3.20.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@jsenv/core": "*"
|
|
@@ -42,7 +42,13 @@ export const bundleJsModules = async ({
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
const url = fileUrlConverter.asFileUrl(id)
|
|
45
|
-
const
|
|
45
|
+
const urlObject = new URL(url)
|
|
46
|
+
urlObject.search = ""
|
|
47
|
+
const urlWithoutSearch = urlObject.href
|
|
48
|
+
const meta = URL_META.applyAssociations({
|
|
49
|
+
url: urlWithoutSearch,
|
|
50
|
+
associations,
|
|
51
|
+
})
|
|
46
52
|
const chunkName = Object.keys(meta).find((key) => meta[key])
|
|
47
53
|
return chunkName || null
|
|
48
54
|
}
|
|
@@ -292,7 +298,7 @@ const rollupPluginJsenv = ({
|
|
|
292
298
|
}
|
|
293
299
|
urlObject = new URL(specifier, importer)
|
|
294
300
|
}
|
|
295
|
-
urlObject.searchParams.set("
|
|
301
|
+
urlObject.searchParams.set("as_js_classic", "")
|
|
296
302
|
return { external: true, id: urlObject.href }
|
|
297
303
|
}
|
|
298
304
|
return null
|