diff --git a/docs/guide/cli.md b/docs/guide/cli.md index 08134c4c839a8b..bfbd6ca7de6e0c 100644 --- a/docs/guide/cli.md +++ b/docs/guide/cli.md @@ -58,7 +58,6 @@ vite build [root] | `--minify [minifier]` | Enable/disable minification, or specify minifier to use (default: `"esbuild"`) (`boolean \| "terser" \| "esbuild"`) | | `--manifest [name]` | Emit build manifest json (`boolean \| string`) | | `--ssrManifest [name]` | Emit ssr manifest json (`boolean \| string`) | -| `--force` | Force the optimizer to ignore the cache and re-bundle (experimental)(`boolean`) | | `--emptyOutDir` | Force empty outDir when it's outside of root (`boolean`) | | `-w, --watch` | Rebuilds when modules have changed on disk (`boolean`) | | `-c, --config ` | Use specified config file (`string`) | diff --git a/packages/vite/src/node/cli.ts b/packages/vite/src/node/cli.ts index 86557164e05b3d..08963f29081412 100644 --- a/packages/vite/src/node/cli.ts +++ b/packages/vite/src/node/cli.ts @@ -258,10 +258,6 @@ cli ) .option('--manifest [name]', `[boolean | string] emit build manifest json`) .option('--ssrManifest [name]', `[boolean | string] emit ssr manifest json`) - .option( - '--force', - `[boolean] force the optimizer to ignore the cache and re-bundle (experimental)`, - ) .option( '--emptyOutDir', `[boolean] force empty outDir when it's outside of root`, @@ -280,7 +276,6 @@ cli configFile: options.config, logLevel: options.logLevel, clearScreen: options.clearScreen, - optimizeDeps: { force: options.force }, build: buildOptions, }) } catch (e) {