unplugin / unplugin-turbo-console

🚀 Improve the Developer Experience of console
https://utc.yuy1n.io
MIT License
527 stars 12 forks source link

when use vue-cli,and use <comment> Author: Name: Email: Github: Date: </comment> ,project is ok,but after add unplugin-turbo-console , project is error #50

Open long36708 opened 6 days ago

long36708 commented 6 days ago

Describe the bug

Module parse failed: Unexpected token (7:0) File was processed with these loaders:

ERROR in ./src/App.vue?vue&type=custom&index=0&blockType=comment (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=unplugin-turbo-console!./src/App.vue?vue&type=custom&index=0&blockType=comment) 7:0 Module parse failed: Unexpected token (7:0)

Reproduction

https://github.com/long36708/vue-cli-project

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
    Memory: 26.95 GB / 47.33 GB
  Binaries:
    Node: 18.20.0 - D:\dev\nodejs\node.EXE
    Yarn: 1.22.19 - D:\dev\nvm\node_global\yarn.CMD
    npm: 10.5.0 - D:\dev\nodejs\npm.CMD
    pnpm: 8.15.5 - D:\dev\nvm\node_global\pnpm.CMD
  Browsers:
    Edge: Chromium (125.0.2535.67)
    Internet Explorer: 11.0.26100.1

Used Package Manager

npm

Validations

yuyinws commented 3 days ago

It looks like a upstream bug from unplugin. I will keep tracking it.