wxt 0.20.19 → 0.20.20
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.
|
@@ -10,7 +10,14 @@ function iifeFooter(iifeReturnValueName) {
|
|
|
10
10
|
return {
|
|
11
11
|
name: "wxt:iife-footer",
|
|
12
12
|
generateBundle(_, bundle) {
|
|
13
|
-
for (const chunk of Object.values(bundle)) if (chunk.type === "chunk" && chunk.isEntry)
|
|
13
|
+
for (const chunk of Object.values(bundle)) if (chunk.type === "chunk" && chunk.isEntry) {
|
|
14
|
+
const code = chunk.code;
|
|
15
|
+
const marker = "\n//# sourceMappingURL=";
|
|
16
|
+
const returnValue = `${iifeReturnValueName};`;
|
|
17
|
+
const index = code.indexOf(marker);
|
|
18
|
+
if (index >= 0) chunk.code = code.slice(0, index + 1) + `${returnValue}\n` + code.slice(index + 1);
|
|
19
|
+
else chunk.code += `\n${returnValue}`;
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
22
|
};
|
|
16
23
|
}
|
package/dist/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.20",
|
|
5
5
|
"description": "⚡ Next-gen Web Extension Framework",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"tinyglobby": "^0.2.15",
|
|
47
47
|
"unimport": "^3.13.1 || ^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
48
48
|
"vite": "^5.4.19 || ^6.3.4 || ^7.0.0 || ^8.0.0-0",
|
|
49
|
-
"vite-node": "^3.2.4 || ^5.0.0",
|
|
49
|
+
"vite-node": "^3.2.4 || ^5.0.0 || ^6.0.0",
|
|
50
50
|
"web-ext-run": "^0.2.4",
|
|
51
|
-
"@wxt-dev/browser": "^0.1.
|
|
51
|
+
"@wxt-dev/browser": "^0.1.38"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"
|