Skip to content

Commit

Permalink
types: Change config.vite to UserConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jul 11, 2023
1 parent 636aa48 commit ef6001e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/build/buildEntrypoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -89,7 +89,7 @@ async function buildMultipleEntrypoints(
entrypoints: Entrypoint[],
config: InternalConfig,
): Promise<BuildStepOutput> {
const multiPage: vite.InlineConfig = {
const multiPage: vite.UserConfig = {
plugins: [plugins.multipageMove(entrypoints, config)],
build: {
rollupOptions: {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/core/types/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface InlineConfig {
browser?: TargetBrowser;
manifestVersion?: TargetManifestVersion;
logger?: Logger;
vite?: Omit<vite.InlineConfig, 'root' | 'configFile' | 'mode'>;
vite?: Omit<vite.UserConfig, 'root' | 'configFile' | 'mode'>;
manifest?: UserManifest;
server?: WxtDevServer;
runner?: ExtensionRunnerConfig;
Expand Down

0 comments on commit ef6001e

Please sign in to comment.