DEV Community

Discussion on: Can I publish ES6 to npm?

Collapse
 
stereobooster profile image
stereobooster

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" 👌

Collapse
 
elliot profile image
Elliot

that is really cool. Thanks for trying it out and posting an update!