wxt 0.19.1-alpha1 → 0.19.1-alpha2
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.
|
@@ -5,8 +5,11 @@ export function removeEntrypointMainFunction(config, path) {
|
|
|
5
5
|
const absPath = normalizePath(resolve(config.root, path));
|
|
6
6
|
return {
|
|
7
7
|
name: "wxt:remove-entrypoint-main-function",
|
|
8
|
-
transform
|
|
9
|
-
|
|
8
|
+
transform: {
|
|
9
|
+
order: "pre",
|
|
10
|
+
handler(code, id) {
|
|
11
|
+
if (id === absPath) return removeMainFunctionCode(code);
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
};
|
|
12
15
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export function createEnvironment(getGlobals) {
|
|
2
2
|
const setup = () => {
|
|
3
|
-
console.log("SETUP");
|
|
4
3
|
const envGlobals = getGlobals();
|
|
5
4
|
const ogGlobals = getOgGlobals(envGlobals);
|
|
6
5
|
applyGlobals(envGlobals);
|
|
7
6
|
return () => {
|
|
8
7
|
applyGlobals(ogGlobals);
|
|
9
|
-
console.log("TEARDOWN");
|
|
10
8
|
};
|
|
11
9
|
};
|
|
12
10
|
const run = async (fn) => {
|
package/dist/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.19.1-
|
|
1
|
+
export const version = "0.19.1-alpha2";
|