jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

How to bundle an importmap? #114

Closed mustafa0x closed 3 years ago

mustafa0x commented 3 years ago

I want to use rasterizehtml in an application bundled by rollup, but it has node dependencies. JSPM's importmap provides the deps, but I don't know how to feed that importmap to rollup so that I get everything contained in one bundle.

Thank you; exceedingly helpful tool!

guybedford commented 3 years ago

The goal is to have a RollupJS plugin for JSPM to support this. There is an older version of this plugin but it needs updating. Are you interested in contributing? It's on my list!

mustafa0x commented 3 years ago

Thanks for the reply! I'll take a look but I'm not too familiar with the internals of rollup. :)

guybedford commented 3 years ago

The plugin at https://github.com/jspm/rollup-plugin-jspm now handles this use case! It is yet to be released properly, but works when cloned. Will close this issue as resolved, pending that release.

mustafa0x commented 3 years ago

Woah, impressive, thanks!