Skip to content
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

导致 babel-plugin-transform-react-jsx 解析 jsx 无法生效 #124

Open
1 task
yeyuguo opened this issue Apr 24, 2024 · 0 comments
Open
1 task

导致 babel-plugin-transform-react-jsx 解析 jsx 无法生效 #124

yeyuguo opened this issue Apr 24, 2024 · 0 comments

Comments

@yeyuguo
Copy link

yeyuguo commented Apr 24, 2024

Basic Info

  • Package Name And Version: [email protected]
  • Framework version: react17
  • Browser: chrome124.0.0.0

Extra info

开发了内部的 babel 插件,插件不能生效;

  1. 排查是因为 @arco-plugins/webpack-react 插件导致 babel-plugin-transform-react-jsx 无法生效;
  2. 如果换成 @arco-design/webpack-plugin 就能正常了;
  3. @arco-plugins/webpack-react 设置过 babelOption 的 presets,有其他错误导致,未达预期;

What is expected?

期望 @arco-plugins/webpack-react 让 babel-plugin-transform-react-jsx 生效;

Steps to reproduce

步骤3目的无法生效

  1. 声明 import ArcoWebpackPlugin from '@arco-plugins/webpack-react';
  2. Use new ArcoWebpackPlugin({
    theme: '@arco-design/xxxx',
    webpackImplementation: webpack,
    })
  3. 引入个人实现 babel 插件:config?. plugins?. push([babel-xxxx...])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant