Closed ghost closed 3 years ago
You can check out CDNs that are built for ESM:
Note that if you use these CDNs, you won't be able to bundle the deps to avoid network waterfalls unless you manually add modulepreload directives for nested dependency imports. It probably won't result in the best performance.
@yyx990803 Is there an example of using CDN for vite? I think this should be a necessity
Read the docs of those CDNs?
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
Describe the bug
How to support the introduction of CDN under current vite. I found that when the CDN is introduced, if other packages are introduced inside the CDN, then the CDN will become invalid. For example, the CDN of vuex refers to
import vue from'vue'
, then how do I change the address of this vue in vuex to cdnSystem Info
vite
version:2.0-beta.16Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.