sxzz / unplugin-glob

Imports or exports files using glob match for ES Module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows 没有正常工作

xieyhn opened this issue · comments

Describe the bug

/

Reproduction

https://github.com/haiya6/unplugin-glob-issue

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Memory: 7.75 GB / 15.82 GB
  Binaries:
    Node: 16.14.2 - d:\nodejs\node.EXE
    Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.11.0 - d:\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.42)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

const [name, src, pattern] = id.replace(ID_PREFIX, '').split(`:`, 3)

也许是这里的 id 包含了 Windows 的磁盘路径导致,磁盘路径中有 :,如 D:/p/filename.ts

已知问题,目前暂无 Windows 机器调试