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 +1 -1
- package/dist/loader.js +1 -1
- package/loader.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1690,7 +1690,7 @@ function cosPlugin(options = {}) {
|
|
|
1690
1690
|
/[.*+?^${}()|[\]\\]/g,
|
|
1691
1691
|
"\\$&"
|
|
1692
1692
|
);
|
|
1693
|
-
const bareSpecifier = `cos-
|
|
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-
|
|
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-
|
|
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) {
|