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

Show how to load single-spa-angularjs with babel. #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joeldenning
Copy link

@joeldenning joeldenning commented Mar 29, 2021

Since systemjs-babel only works with modules in ESM/CJS format, you need to use the src directory instead of lib directory of single-spa-angularjs in order for it to load. Additionally, the angular library isn't loaded properly by systemjs-babel since it's in global format, which isn't supported by babel.

I don't recommend using systemjs-babel, generally speaking, and definitely not with old libraries that aren't in ESM format. So I wouldn't recommend merging and using this PR, as it's going down a path I don't recommend. I shared it with you anyway in case you wish to ignore that recommendation.

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

Successfully merging this pull request may close these issues.

1 participant