From 0df503fed554d2dfd5117dbedb53e896dd0c2bf7 Mon Sep 17 00:00:00 2001 From: phacks Date: Thu, 13 Dec 2018 18:07:45 +0100 Subject: [PATCH] Fix demo application for IE 11 --- examples/demo/package.json | 3 ++- examples/demo/src/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/demo/package.json b/examples/demo/package.json index 3789ecfdaf..8e923e9455 100644 --- a/examples/demo/package.json +++ b/examples/demo/package.json @@ -17,6 +17,7 @@ "ra-language-french": "^2.0.0", "react": "~16.3.1", "react-admin": "^2.0.0", + "react-app-polyfill": "^0.1.3", "react-dom": "~16.3.1", "react-redux": "~5.0.7", "react-router-dom": "~4.2.2", @@ -34,7 +35,7 @@ "browserslist": [ ">0.2%", "not dead", - "not ie <= 11", + "not ie <= 10", "not op_mini all" ] } diff --git a/examples/demo/src/index.js b/examples/demo/src/index.js index 5d76a18a85..0301f108c0 100644 --- a/examples/demo/src/index.js +++ b/examples/demo/src/index.js @@ -1,3 +1,4 @@ +import 'react-app-polyfill/ie11'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App';