-
Notifications
You must be signed in to change notification settings - Fork 35
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
IE 11 support? #4
Comments
same question |
Having tried the demos in IE11, it doesn't work. I get an exception "Object doesn't support this action". In the source it's at src/index.ts line 11: IE doesn't support the URL constructor. https://developer.mozilla.org/en-US/docs/Web/API/URL/URL |
There are several problems:
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=default,fetch"></script>
Check the demo // transform(text, url) returns
__shimport__.define('http://localhost:5000/static-imports/main.js', ['./a.js', './b.js'], function(__import, __exports, a, __dep_1){
a = a.default;
/*import a from './a.js'*/;
var message = __dep_1.message;
/*import { message } from './b.js'*/;
document.body.innerHTML += `\n\t<p>${a}</p>\n\t<p>${message}</p>\n`;
});
//# sourceURL=http://localhost:5000/static-imports/main.js" @Rich-Harris, what do you think? Should we fix the Solution to run the demo/static-imports in IE 11
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=default,fetch"></script>
import a from './a.js';
import { message } from './b.js';
document.body.innerHTML += '<p>' + a + '</p><p>' + message + '</p>'; |
Yeah, it's a bring-your-own-polyfill deal, and you would need to be serving modules that have been transpiled to ES5 (apart from |
@Rich-Harris any news ? |
The readme now has a note about what exactly this library does for you and what it needs to do that. |
I couldn't get it to work at all with IE 11. Is it supported? (The readme does say "all browsers", and IE 11 is still supported.)
The text was updated successfully, but these errors were encountered: