From f1a42429e1d24230a4a78cca82657e2d3602a7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Thu, 8 Feb 2024 18:20:19 +0900 Subject: [PATCH] refactor: remove `vite build --force` (#15837) --- docs/guide/cli.md | 1 - packages/vite/src/node/cli.ts | 5 ----- 2 files changed, 6 deletions(-) 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) {