馃悰 bug report
tsconfig.json :
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"dom",
"es2015.promise",
"es5"
],
"target": "es5",
"noImplicitAny": false,
"sourceMap": true
}
}
Main.ts
alert("typescript works!");
index.js
import "./ts/Main.ts";
index.html
<!doctype html>
<html>
<head>
<script src="index.js"></script>
</head>
<body>
</body>
</html>
works in IE 11
does not works in IE 11
I guess arrow function in compiled code is the reason
module.bundle.Module = Module;
if (!module.bundle.parent) {
var ws = new WebSocket('ws://localhost:59462/');
ws.onmessage = (e) => {
var data = JSON.parse(e.data);
| Software | Version(s)
| ---------------- | ----------
| Parcel | 1.1.09
| Node | 9.1.0
| npm/Yarn | npm 5.5.1
| Operating System | macOS High Sierra 10.13.1
It seems to be related with #169
Closed by #169 (merged)
Feel free to reopen if you think I closed this issue in error :)
Most helpful comment
It seems to be related with #169