These are chat archives for systemjs/systemjs

Jan 2019
Michael Chen
Jan 23 01:42
I have a question with systemjs 2.0
In 1.0, I could use registerDynamic to register with SystemJS a dependency. For example, I could register 'react' and have that name resolve to some version of react or something like that.
registerDynamic seems to no longer exist in 2.0
should I be using packagename map or System.register() to achieve the same effect?
I've tried register, but dont think im doing it correctly or something since it was not working
Again, the main goal is to register with SystemJS a dependency so that it can be hoisted across multiple webpack instances utilizing webpacks externals option. This I believe is needed since webpack instances are isolated, whereas SystemJS can bridge that gap across multiple projects/instances