Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple self-executing bundles fail #154

Closed
evanweible-wf opened this issue Sep 30, 2014 · 1 comment
Closed

Multiple self-executing bundles fail #154

evanweible-wf opened this issue Sep 30, 2014 · 1 comment

Comments

@evanweible-wf
Copy link

If you try to include more than one sfx bundle on a page, only the first will execute correctly.

From what I can tell, the first sfx bundle leaves a global reference to System when it executes. This is an issue because later sfx bundles will check for a global System, and if found, will try to use it to import instead of self-executing. This then fails because System is not actually a SystemJS implementation but rather a shim used in the sfx bundling and thus lacks the .import() method.

I've created a gist with a reduced test case that you can use to try this out for yourself: https://gist.github.com/evanweible-wf/c85adae40b622477ba91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants