wxt 0.18.7 → 0.18.9
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/{chunk-A3R6ZPUA.js → chunk-UA35R5HN.js} +215 -162
- package/dist/cli.js +216 -162
- package/dist/{index-D6lH9OkP.d.cts → index-B0efqfEK.d.cts} +9 -6
- package/dist/{index-D6lH9OkP.d.ts → index-B0efqfEK.d.ts} +9 -6
- package/dist/index.cjs +231 -177
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -1
- package/dist/modules.cjs +5 -6
- package/dist/modules.d.cts +1 -1
- package/dist/modules.d.ts +1 -1
- package/dist/modules.js +5 -6
- package/dist/testing.cjs +50 -47
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/virtual/background-entrypoint.js +44 -31
- package/dist/virtual/reload-html.js +37 -29
- package/package.json +2 -1
|
@@ -434,14 +434,17 @@ interface InlineConfig {
|
|
|
434
434
|
*/
|
|
435
435
|
includeBrowserPolyfill?: boolean;
|
|
436
436
|
/**
|
|
437
|
-
*
|
|
437
|
+
* Method used to import entrypoint files during the build process to extract their options.
|
|
438
438
|
*
|
|
439
|
-
*
|
|
439
|
+
* - "jiti": Simplest and fastest, but doesn't allow using any imported variables outside the entrypoint's main function
|
|
440
|
+
* - "vite-runtime" (unstable): Uses Vite 5.3's new runtime API to import the entrypoints. Automatically includes vite config based on your wxt.config.ts file
|
|
441
|
+
* - "vite-node" (unstable): Uses `vite-node` to import the entrypoints. Automatically includes vite config based on your wxt.config.ts file
|
|
440
442
|
*
|
|
441
|
-
* @
|
|
442
|
-
*
|
|
443
|
+
* @see {@link https://wxt.dev/guide/go-further/entrypoint-side-effects.html|Entrypoint Side-effect Docs}
|
|
444
|
+
*
|
|
445
|
+
* @default "jiti"
|
|
443
446
|
*/
|
|
444
|
-
|
|
447
|
+
entrypointImporter?: 'jiti' | 'vite-runtime' | 'vite-node';
|
|
445
448
|
};
|
|
446
449
|
/**
|
|
447
450
|
* Config effecting dev mode only.
|
|
@@ -1179,7 +1182,7 @@ interface ResolvedConfig {
|
|
|
1179
1182
|
alias: Record<string, string>;
|
|
1180
1183
|
experimental: {
|
|
1181
1184
|
includeBrowserPolyfill: boolean;
|
|
1182
|
-
|
|
1185
|
+
entrypointImporter: 'jiti' | 'vite-runtime' | 'vite-node';
|
|
1183
1186
|
};
|
|
1184
1187
|
dev: {
|
|
1185
1188
|
/** Only defined during dev command */
|