@jsenv/plugin-bundling 2.1.4 → 2.1.5

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.4",
3
+ "version": "2.1.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,13 @@ export const bundleJsModules = async ({
42
42
  }
43
43
  }
44
44
  const url = fileUrlConverter.asFileUrl(id)
45
- const meta = URL_META.applyAssociations({ url, associations })
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
  }