Skip to content

Commit

Permalink
fix(bundling): pass --force option to vite dev-server
Browse files Browse the repository at this point in the history
Fixes: #13700
  • Loading branch information
jaysoo authored and Jack Hsu committed Dec 19, 2022
1 parent 20c4782 commit 8fc100e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/generated/packages/vite.json
Expand Up @@ -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": {},
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/executors/dev-server/dev-server.impl.ts
Expand Up @@ -23,6 +23,7 @@ export default async function* viteDevServerExecutor(
const serverConfig: InlineConfig = mergeConfig(
await getBuildAndSharedConfig(mergedOptions, context),
{
optimizeDeps: { force: options.force },
server: getServerOptions(mergedOptions, context),
} as InlineConfig
);
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/executors/dev-server/schema.d.ts
Expand Up @@ -11,4 +11,5 @@ export interface ViteDevServerExecutorOptions {
logLevel?: info | warn | error | silent;
mode?: string;
clearScreen?: boolean;
force?: boolean;
}
4 changes: 4 additions & 0 deletions packages/vite/src/executors/dev-server/schema.json
Expand Up @@ -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": {},
Expand Down

0 comments on commit 8fc100e

Please sign in to comment.