vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
778 stars 50 forks source link

JSX Namespace is disabled by default because react does not support it yet. You can specify jsc.transform.react.throwIfNamespace to false to override default behavior #137

Closed one-dragon closed 11 months ago

one-dragon commented 11 months ago

写了个加载svg的组件,并使用vite-plugin-svg-icons插件加载svg目录下的所有svg 但在@vitejs/plugin-react-swc插件编译的时候报错,如下图: image

one-dragon commented 11 months ago

并且看@vitejs/plugin-react-swc这个插件源码中好像不引入swc的配置文件 导入无法配置当前选项 请问如何解决~

LbhFront-end commented 8 months ago

并且看@vitejs/plugin-react-swc这个插件源码中好像不引入swc的配置文件 导入无法配置当前选项 请问如何解决~

你好,我想问一下,后面这个问题怎么解决的,有其他方式吗