unplugin-vue-components
unplugin-vue-components copied to clipboard
[Ant-Design-Vue] `dts` cannot work with a path. `importStyle` will throw a error.
Describe the bug
The dts option cannot work with a path. There is nothing will be generated after serve on.
The importStyle option will throw a error with true(It is a default value).
How I create the minimal repo:
pnpm create vue (all options are false)
pnpm add ant-design-vue
pnpm add -D unplugin-vue-components
pnpm dev
Reproduction
https://github.com/s3xysteak/unplugin-vue-components-dts-bug-minirepo
System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz
Memory: 7.19 GB / 15.90 GB
Binaries:
Node: 20.9.0 - ~\AppData\Local\fnm_multishells\8032_1701332906285\node.EXE
npm: 10.1.0 - ~\AppData\Local\fnm_multishells\8032_1701332906285\npm.CMD
pnpm: 8.11.0 - ~\AppData\Local\pnpm\pnpm.CMD
Browsers:
Edge: Spartan (44.19041.3636.0), Chromium (119.0.2151.72)
Internet Explorer: 11.0.19041.3636
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
I think it can generate all types when the serve start, just like unplugin-auto-import. That may be a simple solution.