From ef6001e0c0cb9c9eb66aa2bbb5a29040f2cb1e09 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Mon, 10 Jul 2023 22:58:32 -0500 Subject: [PATCH] types: Change `config.vite` to `UserConfig` --- src/core/build/buildEntrypoints.ts | 6 +++--- src/core/types/external.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/build/buildEntrypoints.ts b/src/core/build/buildEntrypoints.ts index 7530eb27f..fbf4a5d20 100644 --- a/src/core/build/buildEntrypoints.ts +++ b/src/core/build/buildEntrypoints.ts @@ -45,7 +45,7 @@ async function buildSingleEntrypoint( ? `virtual:wxt-${entrypoint.type}?${entrypoint.inputPath}` : entrypoint.inputPath; - const libMode: vite.InlineConfig = { + const libMode: vite.UserConfig = { build: { lib: { entry, @@ -89,7 +89,7 @@ async function buildMultipleEntrypoints( entrypoints: Entrypoint[], config: InternalConfig, ): Promise { - const multiPage: vite.InlineConfig = { + const multiPage: vite.UserConfig = { plugins: [plugins.multipageMove(entrypoints, config)], build: { rollupOptions: { @@ -112,7 +112,7 @@ async function buildMultipleEntrypoints( const entryConfig = vite.mergeConfig( multiPage, config.vite, - ) as vite.InlineConfig; + ) as vite.UserConfig; const result = await vite.build(entryConfig); return { diff --git a/src/core/types/external.ts b/src/core/types/external.ts index b2b663ba5..5c13eed36 100644 --- a/src/core/types/external.ts +++ b/src/core/types/external.ts @@ -19,7 +19,7 @@ export interface InlineConfig { browser?: TargetBrowser; manifestVersion?: TargetManifestVersion; logger?: Logger; - vite?: Omit; + vite?: Omit; manifest?: UserManifest; server?: WxtDevServer; runner?: ExtensionRunnerConfig;