From 3b3fd18ea1fb8f63be5d0b2a13ba25d7b19bfdbe Mon Sep 17 00:00:00 2001 From: Kyubinhan Date: Mon, 24 Dec 2018 21:22:04 +0900 Subject: [PATCH] add react-app-polyfill package --- package-lock.json | 18 +++++++++++++++--- package.json | 1 + src/constants/api.js | 4 ++-- src/index.js | 2 ++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7bb80fd75..ef7e27981 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12305,9 +12305,9 @@ } }, "react-app-polyfill": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-0.1.3.tgz", - "integrity": "sha512-Fl5Pic4F15G05qX7RmUqPZr1MtyFKJKSlRwMhel4kvDLrk/KcQ9QbpvyMTzv/0NN5957XFQ7r1BNHWi7qN59Pw==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-0.2.0.tgz", + "integrity": "sha512-uBfocjRsBNqhTaEywUZ2buzhHbor2jBbnhZY8VUZ7VZ3PXucIPZrPDAAmbclELhvl+x08PbynAGQfMYcBmqZ2w==", "requires": { "core-js": "2.5.7", "object-assign": "4.1.1", @@ -13077,6 +13077,18 @@ "ansi-styles": "^3.2.0" } }, + "react-app-polyfill": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-0.1.3.tgz", + "integrity": "sha512-Fl5Pic4F15G05qX7RmUqPZr1MtyFKJKSlRwMhel4kvDLrk/KcQ9QbpvyMTzv/0NN5957XFQ7r1BNHWi7qN59Pw==", + "requires": { + "core-js": "2.5.7", + "object-assign": "4.1.1", + "promise": "8.0.2", + "raf": "3.4.0", + "whatwg-fetch": "3.0.0" + } + }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", diff --git a/package.json b/package.json index bb1933b2d..f1cc43d76 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "prop-types": "^15.6.2", "puppeteer": "^1.10.0", "react": "^16.6.1", + "react-app-polyfill": "^0.2.0", "react-dom": "^16.6.1", "react-loadable": "^5.5.0", "react-pdf": "^3.0.6", diff --git a/src/constants/api.js b/src/constants/api.js index 5527e2d6b..dca21bb99 100644 --- a/src/constants/api.js +++ b/src/constants/api.js @@ -21,9 +21,9 @@ export const GET_TOKEN_FROM_SSO = `/auth/realms/${SSO_REALM_NAME}/protocol/openi export const REFRESH_TOKEN_FROM_SSO = `/auth/realms/${SSO_REALM_NAME}/protocol/openid-connect/token`; // const DEV_API_BASE_URL = 'https://web-range-myra-prod.pathfinder.gov.bc.ca/api'; -const DEV_API_BASE_URL = 'https://web-range-myra-dev.pathfinder.gov.bc.ca/api'; +// const DEV_API_BASE_URL = 'https://web-range-myra-dev.pathfinder.gov.bc.ca/api'; // const DEV_API_BASE_URL = 'https://web-range-myra-test.pathfinder.gov.bc.ca/api'; -// const DEV_API_BASE_URL = 'http://localhost:8000/api'; +const DEV_API_BASE_URL = 'http://localhost:8000/api'; // const DEV_API_BASE_URL = 'http://10.10.10.190:8000/api'; diff --git a/src/index.js b/src/index.js index 67fb4b98f..51ef4d2fc 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,8 @@ // asynchronously load semantic-ui styling import('./semantic/semantic.min.css'); +import 'react-app-polyfill/ie9'; // includes IE10 and IE11 support. + import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux';