Support for ES modules
See original GitHub issueCould you add option for ES modules as unpkg.com?
Example https://unpkg.com/@material/mwc-button@latest/mwc-button.js?module
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
JavaScript modules via script tag | Can I use... Support tables ...
Loading JavaScript module scripts (aka ES6 modules) using <script type="module"> Includes support for the nomodule attribute. Usage % of. all users, all tracked ......
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >ECMAScript modules | Node.js v19.3.0 Documentation
Node.js fully supports ECMAScript modules as they are currently specified and provides interoperability between them and its original module format, CommonJS.
Read more >Using ES modules in Node.js - LogRocket Blog
It's important to know that because Node.js now supports both ES modules and commonJS modules, package authors need to always ensure the type ......
Read more >ES modules in service workers - web.dev
Service workers can use static imports of ES modules to bring in extra code, as an alternative to importScripts().
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gugadev @MartinKolarik is right. Read more here https://jspm.io/ and here https://jspm.org/about/introduction#cdn
But option can be provided with caution.
@MartinKolarik IMO, this is a must-have feature in modern stacks. If you are planning to serve native ESModules to browsers that support it -almost all brosers- you haven’t another alternative than using unpkg with the caveats you said before.