chore: move react-compiler to rolldown babel plugin
This commit is contained in:
parent
0fe7aca758
commit
c4f7863413
3 changed files with 8 additions and 6 deletions
3
bun.lock
3
bun.lock
|
|
@ -78,6 +78,7 @@
|
|||
"@hey-api/openapi-ts": "^0.94.1",
|
||||
"@libsql/client": "^0.17.0",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@rolldown/plugin-babel": "^0.2.1",
|
||||
"@tailwindcss/typography": "^0.5.19",
|
||||
"@tailwindcss/vite": "^4.2.1",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
|
|
@ -758,6 +759,8 @@
|
|||
|
||||
"@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.0.0-rc.9", "", { "os": "win32", "cpu": "x64" }, "sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ=="],
|
||||
|
||||
"@rolldown/plugin-babel": ["@rolldown/plugin-babel@0.2.1", "", { "dependencies": { "picomatch": "^4.0.3" }, "peerDependencies": { "@babel/core": "^7.29.0 || ^8.0.0-rc.1", "@babel/plugin-transform-runtime": "^7.29.0 || ^8.0.0-rc.1", "@babel/runtime": "^7.27.0 || ^8.0.0-rc.1", "rolldown": "^1.0.0-rc.5", "vite": "^8.0.0" }, "optionalPeers": ["@babel/plugin-transform-runtime", "@babel/runtime", "vite"] }, "sha512-pHDVHqFv26JNC8I500JZ0H4h1kvSyiE3V9gjEO9pRAgD1KrIdJvcHCokV6f7gG7Rx4vMOD11V8VUOpqdyGbKBw=="],
|
||||
|
||||
"@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-rc.7", "", {}, "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA=="],
|
||||
|
||||
"@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.59.0", "", { "os": "android", "cpu": "arm" }, "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg=="],
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@
|
|||
"@hey-api/openapi-ts": "^0.94.1",
|
||||
"@libsql/client": "^0.17.0",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@rolldown/plugin-babel": "^0.2.1",
|
||||
"@tailwindcss/typography": "^0.5.19",
|
||||
"@tailwindcss/vite": "^4.2.1",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import { defineConfig } from "vite";
|
|||
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
||||
import { nitro } from "nitro/vite";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import viteReact from "@vitejs/plugin-react";
|
||||
import viteReact, { reactCompilerPreset } from "@vitejs/plugin-react";
|
||||
import babel from "@rolldown/plugin-babel";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
|
|
@ -21,11 +22,8 @@ export default defineConfig({
|
|||
preset: "bun",
|
||||
plugins: ["./app/server/plugins/bootstrap.ts"],
|
||||
}),
|
||||
viteReact({
|
||||
babel: {
|
||||
plugins: ["babel-plugin-react-compiler"],
|
||||
},
|
||||
}),
|
||||
viteReact(),
|
||||
babel({ presets: [reactCompilerPreset()] }),
|
||||
tailwindcss(),
|
||||
],
|
||||
build: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue