fix(bundling): pass --force option to vite dev-server (#13905)
This commit is contained in:
parent
61d1d514ce
commit
49fa93b635
@ -214,6 +214,10 @@
|
||||
"clearScreen": {
|
||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"force": {
|
||||
"description": "Force the optimizer to ignore the cache and re-bundle",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
@ -303,6 +307,10 @@
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the build in."
|
||||
},
|
||||
"force": {
|
||||
"description": "Force the optimizer to ignore the cache and re-bundle",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
|
||||
@ -4,6 +4,7 @@ export interface ViteBuildExecutorOptions {
|
||||
base?: string;
|
||||
configFile?: string;
|
||||
fileReplacements?: FileReplacement[];
|
||||
force?: boolean;
|
||||
sourcemap?: boolean | 'inline' | 'hidden';
|
||||
minify?: boolean | 'esbuild' | 'terser';
|
||||
manifest?: boolean | string;
|
||||
|
||||
@ -113,6 +113,10 @@
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"description": "Mode to run the build in."
|
||||
},
|
||||
"force": {
|
||||
"description": "Force the optimizer to ignore the cache and re-bundle",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
|
||||
@ -11,4 +11,5 @@ export interface ViteDevServerExecutorOptions {
|
||||
logLevel?: info | warn | error | silent;
|
||||
mode?: string;
|
||||
clearScreen?: boolean;
|
||||
force?: boolean;
|
||||
}
|
||||
|
||||
@ -75,6 +75,10 @@
|
||||
"clearScreen": {
|
||||
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"force": {
|
||||
"description": "Force the optimizer to ignore the cache and re-bundle",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
|
||||
@ -38,6 +38,7 @@ export async function getBuildAndSharedConfig(
|
||||
options as ViteDevServerExecutorOptions & ViteBuildExecutorOptions,
|
||||
projectRoot
|
||||
),
|
||||
optimizeDeps: { force: options.force },
|
||||
} as InlineConfig);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user