type="module" in externalResources #998
markacianfrani
started this conversation in
Ideas
Replies: 1 comment
-
This would be really cool! One use case that I can think of would be to use a loader and defineCustomElements as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to allow <script type="module"...> in externalResources so that I could use ES modules? Right now it just accepts an array of strings and just checks if css or js. I was thinking maybe somewhere here could check if the resources ends in '.esm.js'. Not everyone may follow that naming convention though.
My use case is wanting to play around with our web component library, which is hosted on a CDN as an ES Module, but I can't load it via externalResources because I can't specify
type="module"
.Beta Was this translation helpful? Give feedback.
All reactions