Closed AlexanderKositsyn closed 3 years ago
Can you provide more details about how to reproduce? This doesn't give me much to go on. At one point ts-mixer was definitely ES5 compatible, but it might require polyfills and/or specific TS compilation settings.
So, i have the same problem too. I use "ts-mixer": "^6.0.0". If you look at dist of ts-mixer in node_modules, you will see ES6:
This ES6 goes to IE11 on build.
We have a workaround in webpack configuration:
But I'm not sure that is a right way to solve the problem, looks like you forgot to add ES5 dist to build or we use your library in the wrong way
I think the solution will involve transpilation settings of some kind, such the webpack/babel config you listed above, or tsconfig.json
settings like "target": "es5"
. It's highly dependent on your specific project. Sorry I can't give more specific advice.
For what it's worth, I can't personally guarantee ES5 compatibility since all my tests run compiling to ES6. But in the README, I detail specific features that require ES6, so theoretically everything could work with the right transpilation settings, but as I mentioned, it's very specific to your project.
Ts-mixer doesnt work in IE11. IE11 doesnt support ES6 syntax. Any workaround or fix?