adobe / aem-spa-project-archetype

Maven Archetype for creating new AEM SPA projects
Apache License 2.0
61 stars 32 forks source link

Doesn't work on IE 11 #85

Closed cqsapient closed 4 years ago

cqsapient commented 5 years ago

We know that react doesn't support IE11 , but I hope AEM SPA developers didn't completely exclude IE11 from it's support matrix.

http://localhost:4502/editor.html/content/we-retail-journal/react/en/home.html

Adding import 'react-app-polyfill/ie11'; import 'core-js'; in App/index.js also doesn't solve the issue.

Please let us know how to enable SPA app and SPA authoring on IE11

pfauchere commented 5 years ago

Hi @adobe/cq-react-editable-components may be a bottleneck - as it may also have to be built to support ie11

Themikeross commented 5 years ago

We extended the support within package.json:

"browserslist": {
    "production": [
      ">0.2%",
      **"ie 9",
      "ie 11",**
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version",
      "ie 9",
      "ie 11"
    ]
  }

Also added the following polyfills in index.js

import 'custom-event-polyfill';
import "core-js/es6";
import "regenerator-runtime/runtime";
import 'react-app-polyfill/ie9';
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';