🚀 Feature Request: 允许不设置 globalHost
#631
Preyou
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does the new feature need to solve?
我不太喜欢在全局空间里挂载一些东西,我觉得这个选择权应该交给用户,三方库应该尽量避免污染用户的全局空间。实际上我一般会搭配vite的unplugin-auto-import来实现不挂在全局空间,但随处可用的效果。
How should the new features you expect looks like?
globalHost
可以设置为false
当设置为
false
时,Apis
将不会挂载到全局空间,同时也不会生成对应的全局类型,How important is it to you?
Better to have
Beta Was this translation helpful? Give feedback.
All reactions