vite-plugin-cross-origin-storage 1.3.16 → 1.3.17

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/dist/index.js CHANGED
@@ -1690,7 +1690,7 @@ function cosPlugin(options = {}) {
1690
1690
  /[.*+?^${}()|[\]\\]/g,
1691
1691
  "\\$&"
1692
1692
  );
1693
- const bareSpecifier = `cos-id/${depFileName}`;
1693
+ const bareSpecifier = `cos-id_${depFileName}`;
1694
1694
  const staticPattern = `(import|export)\\b\\s*((?:(?!\\bimport\\b|\\bexport\\b)[\\s\\S])*?\\bfrom\\b\\s*)?['"]${escapedRelPath}['"]\\s*;?`;
1695
1695
  const staticRegex = new RegExp(staticPattern, "g");
1696
1696
  targetChunk.code = targetChunk.code.replace(
package/dist/loader.js CHANGED
@@ -113,7 +113,7 @@
113
113
  const shimUrl = `data:text/javascript;base64,${btoa(shim)}`;
114
114
 
115
115
  // Map the virtual bare specifier to the shim
116
- importMap.imports[`cos-id/${chunk.fileName}`] = shimUrl;
116
+ importMap.imports[`cos-id_${chunk.fileName}`] = shimUrl;
117
117
 
118
118
  // Also set global if anyone still needs it (legacy)
119
119
  if (chunk.globalVar) {
package/loader.js CHANGED
@@ -113,7 +113,7 @@
113
113
  const shimUrl = `data:text/javascript;base64,${btoa(shim)}`;
114
114
 
115
115
  // Map the virtual bare specifier to the shim
116
- importMap.imports[`cos-id/${chunk.fileName}`] = shimUrl;
116
+ importMap.imports[`cos-id_${chunk.fileName}`] = shimUrl;
117
117
 
118
118
  // Also set global if anyone still needs it (legacy)
119
119
  if (chunk.globalVar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-cross-origin-storage",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "Vite plugin to load chunks from Cross-Origin Storage",
5
5
  "keywords": [
6
6
  "vite",