-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【react-compiler-babel】示例项目跑不通 #87
Comments
The reason is when using react-compiler as a babel plugin with A workaround would be tweaking the rule order as below, not graceful though. export default defineConfig({
plugins: [
pluginReact(),
pluginBabel({
include: /\.(?:jsx|tsx)$/,
babelLoaderOptions(opts) {
opts.plugins?.unshift('babel-plugin-react-compiler')
},
}),
],
+ tools: {
+ bundlerChain: (chain, { env, CHAIN_ID }) => {
+ chain.module.rule('babel-js').before(CHAIN_ID.RULE.JS)
+ },
+ },
}) |
Get, I will fix this in the |
下载项目后启动出现
window10系统、mac系统都一样
The text was updated successfully, but these errors were encountered: