[Feedback Request] Snowpack for npm package authors? #2342
Replies: 1 comment
-
One discussion that came up in #2342 - output formats With Node.js v10 dropping support in a few months, I think it makes sense to give package authors the same ESM output that we're already telling for web developers. We could output your package as an ESM build, and then give package authors the ability to generate other distributions based on that. @drwpow you'll get a kick out of this realization: this is the exact same concept we experimented with in @pika/pack way back in 2019. Build a single ESM output, and then generate any other formats you might like (CJS, UMD, etc.) from that source build. That project got a lot of interest & adoption, but we weren't able to maintain both projects. Is @pika/pack really just "package mode" for Snowpack? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We've seen a lot of requests for this in different discussions and on Discord. It's something that we kind of already support, but not perfectly. If it's possible, I'd love for us to support this flow as much as possible.
I'd love feedback from the community on this, especially anyone who's tried to build an npm package with Snowpack. Where did you get stuck? What features are missing that you would like to see added?
Beta Was this translation helpful? Give feedback.
All reactions