unplugin / unplugin-vue

✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup, Webpack and more.
MIT License
175 stars 7 forks source link

Can't use in rspack when have style block #165

Closed Gehbt closed 2 months ago

Gehbt commented 2 months ago

Describe the bug

when vue sfc include a style block, plugin will run fail.

image

That will work in webpack.

image

Reproduction

https://github.com/Gehbt/uv-bug-repo

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 28.53 GB / 63.67 GB
  Binaries:
    Node: 20.12.2 - ~\AppData\Local\fnm_multishells\16328_1725520498457\node.EXE
    Yarn: 1.22.19 - ~\AppData\Local\fnm_multishells\16328_1725520498457\yarn.CMD
    npm: 10.5.0 - ~\AppData\Local\fnm_multishells\16328_1725520498457\npm.CMD
    pnpm: 9.9.0 - ~\AppData\Local\fnm_multishells\16328_1725520498457\pnpm.CMD
    bun: 1.1.26 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74), ChromiumDev (128.0.2677.1)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

pnpm

Validations

sxzz commented 2 months ago

Reported it upstream https://github.com/unjs/unplugin/issues/415

sxzz commented 2 months ago

Fix & released as 5.1.5