jspm / jspm-cli

ES Module Package Manager
https://jspm.org
Apache License 2.0
3.79k stars 272 forks source link

Add support for creating module preloads for only the static dependencies #2518

Closed dasa closed 1 year ago

dasa commented 1 year ago

It currently seems to also create modulepreload's for the dynamic imports. I'd like these to only be loaded as needed.

guybedford commented 1 year ago

We could definitely add a --preload-static. Perhaps we could even make it the default and have --preload=dynamic for doing both static and dynamic preloading, where --preload=static is the default.

dasa commented 1 year ago

making it the default sounds good 😄