question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for ES modules

See original GitHub issue

Could you add option for ES modules as unpkg.com?

Example https://unpkg.com/@material/mwc-button@latest/mwc-button.js?module

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fusionstringscommented, Jul 14, 2019

@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.

1reaction
gugadevcommented, Feb 25, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found