Skip to content

Commit 70f2848

Browse files
beihailiclaude
andcommitted
fix(build): add terser as explicit devDependency
vite.config.js uses `minify: 'terser'` with custom terserOptions for drop_console / drop_debugger in production builds, but terser is only an optional peer dep of Vite since v3. It was sitting in package-lock.json as a transitive, which `npm ci` installed strictly but `npm install` (now used on PR CI to tolerate Dependabot lockfile drift) would dedupe away. Declaring it explicitly ensures it's always installed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 02a1318 commit 70f2848

2 files changed

Lines changed: 8 additions & 17 deletions

File tree

package-lock.json

Lines changed: 7 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"prettier": "^3.2.4",
7878
"satori": "^0.26.0",
7979
"tailwindcss": "^3.4.18",
80+
"terser": "^5.46.1",
8081
"vite": "^4.5.14",
8182
"vitest": "^4.0.18"
8283
},

0 commit comments

Comments
 (0)