From c1522f1005b05f9be7187f4b62181444fea4e98e Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 14 Oct 2026 02:49:30 +0200 Subject: [PATCH] babel is no longer required for lingui --- commafeed-client/package-lock.json | 1 - commafeed-client/package.json | 1 - commafeed-client/vite.config.ts | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/commafeed-client/package-lock.json b/commafeed-client/package-lock.json index 0110eeec..62651b78 100644 --- a/commafeed-client/package-lock.json +++ b/commafeed-client/package-lock.json @@ -49,7 +49,6 @@ "devDependencies": { "@babel/types": "^8.0.6", "@biomejs/biome": "2.5.15", - "@lingui/babel-plugin-lingui-macro": "6.9.1", "@lingui/cli": "6.9.1", "@lingui/vite-plugin": "6.9.1", "@testing-library/jest-dom": "7.0.1", diff --git a/commafeed-client/package.json b/commafeed-client/package.json index 988e0cab..df77855d 100644 --- a/commafeed-client/package.json +++ b/commafeed-client/package.json @@ -56,7 +56,6 @@ "devDependencies": { "@babel/types": "^8.0.6", "@biomejs/biome": "2.5.15", - "@lingui/babel-plugin-lingui-macro": "6.9.1", "@lingui/cli": "6.9.1", "@lingui/vite-plugin": "6.9.1", "@testing-library/jest-dom": "7.0.1", diff --git a/commafeed-client/vite.config.ts b/commafeed-client/vite.config.ts index ac147113..fb2705d7 100644 --- a/commafeed-client/vite.config.ts +++ b/commafeed-client/vite.config.ts @@ -1,4 +1,4 @@ -import { lingui, linguiTransformerBabelPreset } from "@lingui/vite-plugin" +import { lingui } from "@lingui/vite-plugin" import babel from "@rolldown/plugin-babel" import react, { reactCompilerPreset } from "@vitejs/plugin-react" import { defineConfig } from "vite" @@ -6,9 +6,9 @@ import checker from "vite-plugin-checker" export default defineConfig(() => ({ plugins: [ - babel({ presets: [linguiTransformerBabelPreset(), reactCompilerPreset()] }), react(), - lingui(), + lingui({ macroTransform: true }), + babel({ presets: [reactCompilerPreset()] }), checker({ // temporary disabled until TypeScript 7 exposes a stable api // typescript: true,