mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-03 10:54:46 +00:00
babel is no longer required for lingui
This commit is contained in:
1
commafeed-client/package-lock.json
generated
1
commafeed-client/package-lock.json
generated
@@ -49,7 +49,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/types": "^8.0.6",
|
"@babel/types": "^8.0.6",
|
||||||
"@biomejs/biome": "2.5.15",
|
"@biomejs/biome": "2.5.15",
|
||||||
"@lingui/babel-plugin-lingui-macro": "6.9.1",
|
|
||||||
"@lingui/cli": "6.9.1",
|
"@lingui/cli": "6.9.1",
|
||||||
"@lingui/vite-plugin": "6.9.1",
|
"@lingui/vite-plugin": "6.9.1",
|
||||||
"@testing-library/jest-dom": "7.0.1",
|
"@testing-library/jest-dom": "7.0.1",
|
||||||
|
|||||||
@@ -56,7 +56,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/types": "^8.0.6",
|
"@babel/types": "^8.0.6",
|
||||||
"@biomejs/biome": "2.5.15",
|
"@biomejs/biome": "2.5.15",
|
||||||
"@lingui/babel-plugin-lingui-macro": "6.9.1",
|
|
||||||
"@lingui/cli": "6.9.1",
|
"@lingui/cli": "6.9.1",
|
||||||
"@lingui/vite-plugin": "6.9.1",
|
"@lingui/vite-plugin": "6.9.1",
|
||||||
"@testing-library/jest-dom": "7.0.1",
|
"@testing-library/jest-dom": "7.0.1",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { lingui, linguiTransformerBabelPreset } from "@lingui/vite-plugin"
|
import { lingui } from "@lingui/vite-plugin"
|
||||||
import babel from "@rolldown/plugin-babel"
|
import babel from "@rolldown/plugin-babel"
|
||||||
import react, { reactCompilerPreset } from "@vitejs/plugin-react"
|
import react, { reactCompilerPreset } from "@vitejs/plugin-react"
|
||||||
import { defineConfig } from "vite"
|
import { defineConfig } from "vite"
|
||||||
@@ -6,9 +6,9 @@ import checker from "vite-plugin-checker"
|
|||||||
|
|
||||||
export default defineConfig(() => ({
|
export default defineConfig(() => ({
|
||||||
plugins: [
|
plugins: [
|
||||||
babel({ presets: [linguiTransformerBabelPreset(), reactCompilerPreset()] }),
|
|
||||||
react(),
|
react(),
|
||||||
lingui(),
|
lingui({ macroTransform: true }),
|
||||||
|
babel({ presets: [reactCompilerPreset()] }),
|
||||||
checker({
|
checker({
|
||||||
// temporary disabled until TypeScript 7 exposes a stable api
|
// temporary disabled until TypeScript 7 exposes a stable api
|
||||||
// typescript: true,
|
// typescript: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user