web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.12k stars 575 forks source link

[Feature]: rspack是否支持.vue文件中的jsx代码段渲染 #8493

Closed shiwenna closed 4 days ago

shiwenna commented 4 days ago

What problem does this feature solve?

控制台报错如下:Image node:16.20.2; vue:2.7.16 respack配置如下: Image

What does the proposed API of configuration look like?

使用pluginVue2Jsx()不支持rspack,只支持rsbuild,rspack里的应该如何支持此类代码的loader渲染,应该如何配置?

RainedX commented 4 days ago

you can.use babel-loader for jsx

shiwenna commented 4 days ago

Image 单独为jsx配置了babel-loader,但是好像没有起作用,依旧报错