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,