unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.68k stars 342 forks source link

feat: add support for path with brackets () #677

Closed Amber-372 closed 10 months ago

Amber-372 commented 11 months ago

Description

Directory with special characters does not work correctly eg: project in path: E:\xxx\Code(Template)\ withing the spacial characters '()' . auto import failed and then project worked fail.

It's a upgrade about fast-glob. https://github.com/mrmlnc/fast-glob#why-are-parentheses-match-wrong

Linked Issues

Additional context

Amber-372 commented 10 months ago

@nabaonan Sorry, I'm not very familiar with the source code. Count you add this feature to the master version where appropriate?And this merger will be inessential.

It's a upgrade about fast-glob. https://github.com/mrmlnc/fast-glob#why-are-parentheses-match-wrong

antfu commented 10 months ago

This seems to break the test, I have reverted it temporarily. Feel free to bring it back when you find the fix. Thanks

machinesily commented 7 months ago

Any Update? I need this merage