Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

2.0 #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

2.0 #90

wants to merge 1 commit into from

Conversation

guybedford
Copy link
Member

This updates this plugin to SystemJS 2.0

The new approach is simply to drop in the script tag "babel-transform.js" which includes a Browser build of Babel.

@davidkhess
Copy link

Is it expected that this should work in IE11?

See #93

@guybedford
Copy link
Member Author

Nope, IE11 support for this plugin isn't expected. We could look at adding it, but I'm not sure it's a good idea?

@davidkhess
Copy link

It's implied here that this plugin is the method for getting ES module loading in older browsers: https://github.com/systemjs/systemjs

To load ES modules directly in older browsers with SystemJS we can install and use the Babel plugin:

Isn't IE11 just about the only major browser now that this use case would even apply to?

https://caniuse.com/#search=module

If this plugin isn't going to support IE11 then it seems the statement above is not accurate.

For myself, it's really just a minor use-case of being able to debug directly from source code rather than having to debug via compiled code and source maps so it's no big loss.

And IE11 is mercifully almost dead anyway. It just keeps popping up in enterprise environments.

@guybedford
Copy link
Member Author

@davidkhess I'd suggest for your use case have a look at shimport instead - https://github.com/Rich-Harris/shimport.

@davidkhess
Copy link

That looks very promising – thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants