Compiling down React with parcel to be compatible with browsers Chrome, Firefox, Safari, Edge, and IE (10/11)
Have tried using babel with core-js and every time it will load with a syntax error on IE 10 and 11. Have used in .babelrc @babel/preset-react and @babel/preset-env. The react configuration is set to compile down to dom instead of React.createElement and the env is set to target ie10 and useBuiltins is set to entry with an import of core-js.
"build:site": "parcel build site/site.tsx --out-dir public",
Back in march there was a security update released that has net this issue across the board on all react sites I have worked on. Other sites have used webpack with the same failures
Error Message:
SCRIPT1002: Syntax error
File: site.js, Line: 1685, Column: 32
module.exports=(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())));
Reproducible Code: I am unable to reproduce error from a fresh app yet