wxt 0.5.2 → 0.5.4
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/cli.cjs +240 -183
- package/dist/index.cjs +215 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -11
- package/dist/index.d.ts +4 -11
- package/dist/index.js +239 -179
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -42,14 +42,6 @@ interface InlineConfig {
|
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
44
|
debug?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* ID of the extension for each store. Used for publishing.
|
|
47
|
-
*/
|
|
48
|
-
storeIds?: {
|
|
49
|
-
chrome?: string;
|
|
50
|
-
firefox?: string;
|
|
51
|
-
edge?: string;
|
|
52
|
-
};
|
|
53
45
|
/**
|
|
54
46
|
* Explicitly set a mode to run in. This will override the default mode for each command, and can
|
|
55
47
|
* be overridden by the command line `--mode` option.
|
|
@@ -94,7 +86,7 @@ interface InlineConfig {
|
|
|
94
86
|
*
|
|
95
87
|
* [`root`](#root), [`configFile`](#configfile), and [`mode`](#mode) should be set in WXT's config.
|
|
96
88
|
*/
|
|
97
|
-
vite?:
|
|
89
|
+
vite?: WxtViteConfig | ((env: ConfigEnv) => WxtViteConfig | Promise<WxtViteConfig>);
|
|
98
90
|
/**
|
|
99
91
|
* Customize the `manifest.json` output. Can be an object, promise, or function that returns an
|
|
100
92
|
* object or promise.
|
|
@@ -423,6 +415,7 @@ interface ExtensionRunnerConfig {
|
|
|
423
415
|
*/
|
|
424
416
|
startUrls?: string[];
|
|
425
417
|
}
|
|
418
|
+
type WxtViteConfig = Omit<vite.UserConfig, 'root' | 'configFile' | 'mode'>;
|
|
426
419
|
|
|
427
420
|
type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
428
421
|
|
|
@@ -433,7 +426,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
|
433
426
|
*/
|
|
434
427
|
declare function clean(root?: string): Promise<void>;
|
|
435
428
|
|
|
436
|
-
var version = "0.5.
|
|
429
|
+
var version = "0.5.4";
|
|
437
430
|
|
|
438
431
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
439
432
|
|
|
@@ -449,4 +442,4 @@ declare function build(config: InlineConfig): Promise<BuildOutput>;
|
|
|
449
442
|
*/
|
|
450
443
|
declare function createServer(config?: InlineConfig): Promise<WxtDevServer>;
|
|
451
444
|
|
|
452
|
-
export { BackgroundEntrypoint, BackgroundScriptDefintition, BaseEntrypoint, BaseEntrypointOptions, BuildOutput, BuildStepOutput, ConfigEnv, ContentScriptDefinition, ContentScriptEntrypoint, Entrypoint, ExcludableEntrypoint, ExtensionRunnerConfig, GenericEntrypoint, InlineConfig, Logger, OnContentScriptStopped, OptionsEntrypoint, PopupEntrypoint, TargetBrowser, TargetManifestVersion, UserConfig, UserManifest, UserManifestFn, WxtDevServer, WxtInlineViteConfig, build, clean, createServer, defineConfig, defineRunnerConfig, version };
|
|
445
|
+
export { BackgroundEntrypoint, BackgroundScriptDefintition, BaseEntrypoint, BaseEntrypointOptions, BuildOutput, BuildStepOutput, ConfigEnv, ContentScriptDefinition, ContentScriptEntrypoint, Entrypoint, ExcludableEntrypoint, ExtensionRunnerConfig, GenericEntrypoint, InlineConfig, Logger, OnContentScriptStopped, OptionsEntrypoint, PopupEntrypoint, TargetBrowser, TargetManifestVersion, UserConfig, UserManifest, UserManifestFn, WxtDevServer, WxtInlineViteConfig, WxtViteConfig, build, clean, createServer, defineConfig, defineRunnerConfig, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -42,14 +42,6 @@ interface InlineConfig {
|
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
44
|
debug?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* ID of the extension for each store. Used for publishing.
|
|
47
|
-
*/
|
|
48
|
-
storeIds?: {
|
|
49
|
-
chrome?: string;
|
|
50
|
-
firefox?: string;
|
|
51
|
-
edge?: string;
|
|
52
|
-
};
|
|
53
45
|
/**
|
|
54
46
|
* Explicitly set a mode to run in. This will override the default mode for each command, and can
|
|
55
47
|
* be overridden by the command line `--mode` option.
|
|
@@ -94,7 +86,7 @@ interface InlineConfig {
|
|
|
94
86
|
*
|
|
95
87
|
* [`root`](#root), [`configFile`](#configfile), and [`mode`](#mode) should be set in WXT's config.
|
|
96
88
|
*/
|
|
97
|
-
vite?:
|
|
89
|
+
vite?: WxtViteConfig | ((env: ConfigEnv) => WxtViteConfig | Promise<WxtViteConfig>);
|
|
98
90
|
/**
|
|
99
91
|
* Customize the `manifest.json` output. Can be an object, promise, or function that returns an
|
|
100
92
|
* object or promise.
|
|
@@ -423,6 +415,7 @@ interface ExtensionRunnerConfig {
|
|
|
423
415
|
*/
|
|
424
416
|
startUrls?: string[];
|
|
425
417
|
}
|
|
418
|
+
type WxtViteConfig = Omit<vite.UserConfig, 'root' | 'configFile' | 'mode'>;
|
|
426
419
|
|
|
427
420
|
type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
428
421
|
|
|
@@ -433,7 +426,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
|
433
426
|
*/
|
|
434
427
|
declare function clean(root?: string): Promise<void>;
|
|
435
428
|
|
|
436
|
-
var version = "0.5.
|
|
429
|
+
var version = "0.5.4";
|
|
437
430
|
|
|
438
431
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
439
432
|
|
|
@@ -449,4 +442,4 @@ declare function build(config: InlineConfig): Promise<BuildOutput>;
|
|
|
449
442
|
*/
|
|
450
443
|
declare function createServer(config?: InlineConfig): Promise<WxtDevServer>;
|
|
451
444
|
|
|
452
|
-
export { BackgroundEntrypoint, BackgroundScriptDefintition, BaseEntrypoint, BaseEntrypointOptions, BuildOutput, BuildStepOutput, ConfigEnv, ContentScriptDefinition, ContentScriptEntrypoint, Entrypoint, ExcludableEntrypoint, ExtensionRunnerConfig, GenericEntrypoint, InlineConfig, Logger, OnContentScriptStopped, OptionsEntrypoint, PopupEntrypoint, TargetBrowser, TargetManifestVersion, UserConfig, UserManifest, UserManifestFn, WxtDevServer, WxtInlineViteConfig, build, clean, createServer, defineConfig, defineRunnerConfig, version };
|
|
445
|
+
export { BackgroundEntrypoint, BackgroundScriptDefintition, BaseEntrypoint, BaseEntrypointOptions, BuildOutput, BuildStepOutput, ConfigEnv, ContentScriptDefinition, ContentScriptEntrypoint, Entrypoint, ExcludableEntrypoint, ExtensionRunnerConfig, GenericEntrypoint, InlineConfig, Logger, OnContentScriptStopped, OptionsEntrypoint, PopupEntrypoint, TargetBrowser, TargetManifestVersion, UserConfig, UserManifest, UserManifestFn, WxtDevServer, WxtInlineViteConfig, WxtViteConfig, build, clean, createServer, defineConfig, defineRunnerConfig, version };
|