From 8dd0374d59ce2f3bc751b8bc1bab5b1602c3c95c Mon Sep 17 00:00:00 2001 From: hypercross Date: Thu, 26 Feb 2026 00:27:38 +0800 Subject: [PATCH] fix: babel --- package-lock.json | 1 + package.json | 1 + rsbuild.config.ts | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/package-lock.json b/package-lock.json index cddf024..fbc05ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ }, "devDependencies": { "@rsbuild/core": "^1.1.8", + "@rsbuild/plugin-babel": "^1.1.0", "@rsbuild/plugin-solid": "^1.0.7", "@tailwindcss/typography": "^0.5.15", "@tailwindcss/vite": "^4.0.0", diff --git a/package.json b/package.json index 4b73cf7..1e04124 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ }, "devDependencies": { "@rsbuild/core": "^1.1.8", + "@rsbuild/plugin-babel": "^1.1.0", "@rsbuild/plugin-solid": "^1.0.7", "@tailwindcss/typography": "^0.5.15", "@tailwindcss/vite": "^4.0.0", diff --git a/rsbuild.config.ts b/rsbuild.config.ts index 2fe9741..27fc772 100644 --- a/rsbuild.config.ts +++ b/rsbuild.config.ts @@ -1,9 +1,13 @@ import { defineConfig } from '@rsbuild/core'; +import { pluginBabel } from '@rsbuild/plugin-babel'; import { pluginSolid } from '@rsbuild/plugin-solid'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [ + pluginBabel({ + include: /\.(?:jsx|tsx)$/, + }), pluginSolid(), ], tools: {