-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
react支持.js后缀文件 #1552
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
Comments
You can custom it by |
|
Include js 了也只会被 esbuild 当作 js 处理。 JSX 就用 |
那能否提供个选项让我配置是否对所有js文件当jsx处理?不然旧项目都是js文件没法接入 |
批量改个后缀有这么难? |
既然都使用react了,那必然基本上都是jsx文件,都会对它处理,开放个配置对所有js都处理,对比起来没啥性能损失吧 |
尤大 666 |
This issue has been locked since it has been closed for more than 14 days. If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion. |
react目前默认支持.tsx、.jsx后缀文件解释,不支持.js后缀文件解析。
The text was updated successfully, but these errors were encountered: