Skip to content

Commit 7185282

Browse files
committed
add rolldown/plugin-babel
1 parent a8d36b0 commit 7185282

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@babel/core": "^7.28.0",
4545
"@babel/preset-env": "^7.28.0",
4646
"@babel/preset-react": "^7.27.1",
47+
"@rolldown/plugin-babel": "^0.2.2",
4748
"@typescript-eslint/eslint-plugin": "^8.24.0",
4849
"@typescript-eslint/parser": "^8.24.0",
4950
"@vitejs/plugin-react": "^5.2.0",

vite.config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,8 @@ export default defineConfig(({ mode }) => {
108108
]
109109
}),
110110
react({
111-
include: /\.[jt]sx?$/,
112111
babel: {
113-
plugins: [
114-
["@babel/plugin-proposal-decorators", { legacy: true }],
115-
["@babel/transform-class-properties"],
116-
"babel-plugin-styled-components"
117-
],
118-
assumptions: {
119-
setPublicClassFields: false
120-
}
112+
plugins: ["babel-plugin-styled-components"]
121113
}
122114
})
123115
]

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,13 @@
17491749
resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.9.tgz#96046309142b398c9c2a9a0a052e7355535e69c8"
17501750
integrity sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==
17511751

1752+
"@rolldown/plugin-babel@^0.2.2":
1753+
version "0.2.2"
1754+
resolved "https://registry.yarnpkg.com/@rolldown/plugin-babel/-/plugin-babel-0.2.2.tgz#caf945c65fd8504b044420b853a32f4d6f34f01c"
1755+
integrity sha512-q9pE8+47bQNHb5eWVcE6oXppA+JTSwvnrhH53m0ZuHuK5MLvwsLoWrWzBTFQqQ06BVxz1gp0HblLsch8o6pvZw==
1756+
dependencies:
1757+
picomatch "^4.0.3"
1758+
17521759
"@rolldown/pluginutils@1.0.0-rc.3":
17531760
version "1.0.0-rc.3"
17541761
resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz#8a88cc92a0f741befc7bc109cb1a4c6b9408e1c5"
@@ -2012,7 +2019,7 @@
20122019

20132020
"@types/css-font-loading-module@^0.0.7":
20142021
version "0.0.7"
2015-
resolved "http://localhost:4873/@types/css-font-loading-module/-/css-font-loading-module-0.0.7.tgz#2f98ede46acc0975de85c0b7b0ebe06041d24601"
2022+
resolved "https://registry.yarnpkg.com/@types/css-font-loading-module/-/css-font-loading-module-0.0.7.tgz#2f98ede46acc0975de85c0b7b0ebe06041d24601"
20162023
integrity sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q==
20172024

20182025
"@types/d3-array@3.0.3":

0 commit comments

Comments
 (0)