S
S
Serega0632019-07-22 13:50:46
JavaScript
Serega063, 2019-07-22 13:50:46

Why don't polyfills for IE work in production?

Hello!
When building, everything works fine except for IE.
Writes an error

SCRIPT1003: Предполагается наличие ':'
vendors.a2a446f14c4d7ea65b2c.chunk.js (1,77544)

polyphiles
import 'react-app-polyfill/ie9';
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import 'raf/polyfill';

don't help.
https://cdn.polyfill.io/v2/polyfill.js?features=es6

Also without results.
The question is what am I doing wrong?
But when i change in tsconfig c es6 yf es5
"compilerOptions": {   
    "target": "es5",

frontend, after npm start it starts working in IE.
Doesn't work in production

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question