Skip to content

Commit f1a4242

Browse files
authored
refactor: remove vite build --force (#15837)
1 parent 1882c73 commit f1a4242

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

docs/guide/cli.md

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ vite build [root]
5858
| `--minify [minifier]` | Enable/disable minification, or specify minifier to use (default: `"esbuild"`) (`boolean \| "terser" \| "esbuild"`) |
5959
| `--manifest [name]` | Emit build manifest json (`boolean \| string`) |
6060
| `--ssrManifest [name]` | Emit ssr manifest json (`boolean \| string`) |
61-
| `--force` | Force the optimizer to ignore the cache and re-bundle (experimental)(`boolean`) |
6261
| `--emptyOutDir` | Force empty outDir when it's outside of root (`boolean`) |
6362
| `-w, --watch` | Rebuilds when modules have changed on disk (`boolean`) |
6463
| `-c, --config <file>` | Use specified config file (`string`) |

packages/vite/src/node/cli.ts

-5
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ cli
258258
)
259259
.option('--manifest [name]', `[boolean | string] emit build manifest json`)
260260
.option('--ssrManifest [name]', `[boolean | string] emit ssr manifest json`)
261-
.option(
262-
'--force',
263-
`[boolean] force the optimizer to ignore the cache and re-bundle (experimental)`,
264-
)
265261
.option(
266262
'--emptyOutDir',
267263
`[boolean] force empty outDir when it's outside of root`,
@@ -280,7 +276,6 @@ cli
280276
configFile: options.config,
281277
logLevel: options.logLevel,
282278
clearScreen: options.clearScreen,
283-
optimizeDeps: { force: options.force },
284279
build: buildOptions,
285280
})
286281
} catch (e) {

0 commit comments

Comments
 (0)