Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feature Request] 期待添加对于 rel="modulepreload" 类型的 link 标签支持 #1957

Open
sh-winter opened this issue Feb 9, 2022 · 1 comment

Comments

@sh-winter
Copy link

sh-winter commented Feb 9, 2022

Background

现在好像只对 preloadprefetch 进行了支持,但是 vite 打包后的 html 文件中,使用了 rel="modulepreload"link 标签进行模块预加载,此属性的简易描述可以看 这里

Proposal

Describe the solution you'd like, better to provide some pseudo code.

Additional context

Add any other context or screenshots about the feature request here.

@sh-winter
Copy link
Author

尽管 eval 不支持静态 import 关键字,但是可以通过动态 import 函数来使用 esm 模块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant