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.
@@ -434,14 +434,17 @@ interface InlineConfig {
434
434
  */
435
435
  includeBrowserPolyfill?: boolean;
436
436
  /**
437
- * When set to `true`, use the Vite Runtime API to load entrypoint options instead of the default, `jiti`.
437
+ * Method used to import entrypoint files during the build process to extract their options.
438
438
  *
439
- * Lets you use imported variables and leverage your Vite config to add support for non-standard APIs/syntax.
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
- * @experimental Early access to try out the feature before it becomes the default.
442
- * @default false
443
+ * @see {@link https://wxt.dev/guide/go-further/entrypoint-side-effects.html|Entrypoint Side-effect Docs}
444
+ *
445
+ * @default "jiti"
443
446
  */
444
- viteRuntime?: boolean;
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
- viteRuntime: boolean;
1185
+ entrypointImporter: 'jiti' | 'vite-runtime' | 'vite-node';
1183
1186
  };
1184
1187
  dev: {
1185
1188
  /** Only defined during dev command */