Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

生成类型错误 import关键词 #301

Closed
3 tasks done
Leovenn opened this issue Feb 19, 2024 · 2 comments
Closed
3 tasks done

生成类型错误 import关键词 #301

Leovenn opened this issue Feb 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Leovenn
Copy link

Leovenn commented Feb 19, 2024

Describe the bug

import 变量关键词 生成的类型错误 具体看示例

Reproduction

https://stackblitz.com/edit/vitejs-vite-ttfjga?file=vite.config.ts

Steps to reproduce

仓库中npm run build后
在dist中查看生成的类型

System Info

示例仓库中可最小化复现

Validations

@qmhc qmhc added the bug Something isn't working label Feb 20, 2024
@qmhc
Copy link
Owner

qmhc commented Feb 21, 2024

Now a workaround is to set clearPureImport to false.

@qmhc qmhc closed this as completed in d0c0c86 Feb 21, 2024
@Leovenn
Copy link
Author

Leovenn commented Feb 21, 2024

Now a workaround is to set clearPureImport to false.现在的解决方法是将 clearPureImport false 设置为 。

Received. Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants