-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
Importing specific modules from CDN #16054
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe to our mailing list. Have a nice day! 🍵 |
I remember we ever built ES modules into the ping @pissang |
Hi, I'm afraid we can only import the whole bundle in the browser now. Importing ES module in the browser needs to have
I'm not sure if importing specific modules with hundreds of dependency files is better than importing a single large bundled file. If the scenario exits, I think we can plan to add '.js' extension in our @plainheart We put our esm modules in the |
Instead of changing the source code, how about handling the |
Yup, what @plainheart is saying is exactly what I was suggesting. Keep your source code as-is, just mirror the structure of the |
What problem does this feature solve?
I'm not sure if this due to lack of docs around this, but it does not seem possible to only import specific modules as described here and let the browser do the tree-shaking when using the CDN (jsdelivr), only one large monolithic bundle is available.
What does the proposed API look like?
It would be good to have built versions on jsdelivr of all modules one can import via the npm syntax, so that people can do things like this while using a CDN as well.
The text was updated successfully, but these errors were encountered: