From 9d649075edc6ed7287eb607a52ee7e8dad49f0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=98=E7=80=AC=E3=81=93=E3=81=93=E3=81=82?= Date: Thu, 3 Oct 2024 09:09:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20sass=E3=81=AEmodern-compiler=E3=82=92?= =?UTF-8?q?=E4=BD=BF=E3=81=86=E3=82=88=E3=81=86=E3=81=AB=20(#14651)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend-embed): ビルド時にsassのmodern-compilerを使うように * fix(frontend): ビルド時にsassのmodern-compilerを使うように --- packages/frontend-embed/vite.config.ts | 5 +++++ packages/frontend/vite.config.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/frontend-embed/vite.config.ts b/packages/frontend-embed/vite.config.ts index b95533c2cdfe..bf6f558893c1 100644 --- a/packages/frontend-embed/vite.config.ts +++ b/packages/frontend-embed/vite.config.ts @@ -90,6 +90,11 @@ export function getConfig(): UserConfig { return shortId + '-' + toBase62(hash(id)).substring(0, 4); }, }, + preprocessorOptions: { + scss: { + api: 'modern-compiler', + }, + }, }, define: { diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index f8bd433335d1..b9cb30999fb1 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -109,6 +109,11 @@ export function getConfig(): UserConfig { return shortId + '-' + toBase62(hash(id)).substring(0, 4); }, }, + preprocessorOptions: { + scss: { + api: 'modern-compiler', + }, + }, }, define: {