From e440ece9fe85371b69799ae802053ffd7fcc7180 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Wed, 4 Nov 2026 20:28:52 +0900 Subject: [PATCH] =?UTF-8?q?build(vite):=20=ED=8F=90=EA=B8=B0=20=EC=98=88?= =?UTF-8?q?=EC=A0=95=20build.rollupOptions=EB=A5=BC=20rolldownOptions?= =?UTF-8?q?=EB=A1=9C=20=EB=B0=94=EA=BE=BC=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: 앱·Service Worker·선택 레시피 번들의 청크 설정이 Vite 8에서 @deprecated인 build.rollupOptions 별칭에 있었다(0929/13-07, 세 라운드 남음). 별칭이 지워지는 Vite 버전으로 올리면 청크 그룹과 treeshake 설정이 조용히 빠질 수 있다. 고른 방법: 세 곳의 키 이름만 rolldownOptions로 바꾼다. 내용은 그대로다. 위험·한계: 없음에 가깝다. 같은 설정의 정식 이름이다. 검증: 바꾸기 전후 빌드의 dist/assets 파일 이름이 모두 같다(해시가 같아 출력이 같다). service-worker-build-output 7건 통과, check:optional-recipes PASS(레시피 예산 4개 그대로). Refs: docs/reviews/2026-11-03-maturity-review/13-build-release-supply-chain.md 0929/13-07 --- scripts/lib/optional-recipe-bundle.ts | 2 +- vite.config.ts | 2 +- vite.service-worker.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/optional-recipe-bundle.ts b/scripts/lib/optional-recipe-bundle.ts index 915b287c..0794cf5e 100644 --- a/scripts/lib/optional-recipe-bundle.ts +++ b/scripts/lib/optional-recipe-bundle.ts @@ -127,7 +127,7 @@ export async function measureOptionalRecipeBundle(input: Readonly<{ copyPublicDir: false, cssCodeSplit: false, reportCompressedSize: false, - rollupOptions: { + rolldownOptions: { input: virtualEntry, // Budget the complete selected runtime, including internal fail-closed // guards that a synthetic consumer cannot predict it will exercise. diff --git a/vite.config.ts b/vite.config.ts index c2e205a3..60053a34 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -181,7 +181,7 @@ export default defineConfig(({ command, mode }) => { build: { manifest: true, sourcemap: false, - rollupOptions: { + rolldownOptions: { /** * 1101/08-08. The design-system modules have no top-level effects: * they declare components, icons and token lists. Declared so, a diff --git a/vite.service-worker.config.ts b/vite.service-worker.config.ts index aee34b9e..156732ef 100644 --- a/vite.service-worker.config.ts +++ b/vite.service-worker.config.ts @@ -76,7 +76,7 @@ export default defineConfig({ // §17.2.2: exactly one input, exactly one output, no additional chunk. emptyOutDir: false, sourcemap: false, - rollupOptions: { + rolldownOptions: { input: "src/adapters/service-worker/service-worker-entry.ts", output: { format: "es",