Skip to content
Permalink
Browse files

add promise polyfill

  • Loading branch information...
mateoclarke committed Nov 14, 2018
1 parent 9c2a7c9 commit 547c471bf98824b9a5c9dfd2f1f03a644c014fae
Showing with 23 additions and 1 deletion.
  1. +15 −0 package-lock.json
  2. +1 −0 package.json
  3. +5 −0 src/index.js
  4. +2 −1 webpack.common.js

Some generated files are not rendered by default. Learn more.

@@ -41,6 +41,7 @@
"axios": "^0.18.0",
"bootstrap": "^4.1.3",
"d3": "^5.7.0",
"es6-promise-promise": "^1.0.0",
"jquery": "^3.3.1",
"lodash": "^4.17.11",
"mapbox-gl": "^0.50.0",
@@ -3,13 +3,18 @@ import "bootstrap/dist/js/bootstrap";
import mapboxgl from "mapbox-gl";
import MapboxDraw from "@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw";
import { format } from "d3-format";
import ES6Promise from "es6-promise";
import axios from "axios";
import { ckmeans } from "simple-statistics";

import "mapbox-gl/dist/mapbox-gl.css";
import "@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css";
import "./style.css";

// Promise polyfill for IE 11
// https://stackoverflow.com/questions/42533264/getting-error-promise-is-undefined-in-ie11
ES6Promise.polyfill();

// import favicons for webpack
import "./assets/images/favicon.ico";
import "./assets/images/manifest.json";
@@ -17,7 +17,8 @@ module.exports = {
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
Popper: ["popper.js", "default"]
Popper: ["popper.js", "default"],
Promise: "es6-promise-promise"
})
],
output: {

0 comments on commit 547c471

Please sign in to comment.
You can’t perform that action at this time.