These are chat archives for systemjs/systemjs
Hello everyone. Excited to see the new SystemJS 2.0 release and hoping it can work with Rollup.js to get me where I need to go. I used jspm.io a few years ago before moving to Webpack and the Rollup, and have been continuing to watch it to see it evolve with the new ES6 specs. Great work on the new version.
I am currently building an application using native web components and ES6 modules. I using Rollup to build a single application bundle, but I want to migrate to chunking my application into smaller pieces and loading dynamically. My blocker is that while I am only targeting browsers that support native web components (and coincidentally support static ES6 modules), dynamic ES6 module loading is not.
Step #1 seems to be to chain multiple Rollup configurations/builds to create my application modules and use defined externals to split out dependencies. I can target each bundle to the 'system' format to work nicely with SystemJS.
Step #2, introducing dynamic SystemJS module loading is where I am a bit confused. How do I manage ensuring I load dependencies when I dynamically load a module? I don't see in the package map where you define dependencies?
Any suggestions on tooling this workflow would be appreciated.