Here's a resource for npm + modules: pika.dev/cdn.
It's a CDN that serves npm modules as es6 modules! I haven't tried it out, but it seems pretty cool.
Yeah, I want to look into this one. Need some free time to read through
So I tried it. Indeed it solves the problem. My module is ES6 (unminified, with node-style module resolution), and it works in the browser as is.
Pika CDN transpiled it for me and changed import React from"react" to import React from"https://cdn.pika.dev/_/react/v16" 👌
import React from"react"
import React from"https://cdn.pika.dev/_/react/v16"
that is really cool. Thanks for trying it out and posting an update!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's a resource for npm + modules: pika.dev/cdn.
It's a CDN that serves npm modules as es6 modules! I haven't tried it out, but it seems pretty cool.
Yeah, I want to look into this one. Need some free time to read through
So I tried it. Indeed it solves the problem. My module is ES6 (unminified, with node-style module resolution), and it works in the browser as is.
Pika CDN transpiled it for me and changed
import React from"react"
toimport React from"https://cdn.pika.dev/_/react/v16"
👌that is really cool. Thanks for trying it out and posting an update!