Open guybedford opened 6 years ago
Is it expected that this should work in IE11?
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?
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.
@davidkhess I'd suggest for your use case have a look at shimport instead - https://github.com/Rich-Harris/shimport.
That looks very promising – thanks!
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.