Closed asasugar closed 2 months ago
SWC only supports compiling React JSX, so you cannot use swc-loader
to compile Vue JSX syntax.
To compile Vue JSX, babel-loader
is still required, refer to: https://rspack.dev/guide/tech/vue#vue-3-jsx
It is not possible to use transform.react. pragma
to transform Vue JSX, their outputs are completely different.
System Info
System: OS: macOS 14.5 CPU: (11) arm64 Apple M3 Pro Memory: 1.07 GB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm pnpm: 8.15.6 - ~/.nvm/versions/node/v16.17.0/bin/pnpm Browsers: Chrome: 127.0.6533.119 Safari: 17.5 npmPackages: @rspack/cli: ^0.7.5 => 0.7.5 @rspack/core: ^0.7.5 => 0.7.5
Details
vue@2.6.11 vue-loader@15.11.0
Reproduce link
如上所述
Reproduce Steps
如上所述