diff --git a/client/configuration/polyfills/polyfills.js b/client/configuration/polyfills/polyfills.js deleted file mode 100644 index a63249f6..00000000 --- a/client/configuration/polyfills/polyfills.js +++ /dev/null @@ -1,6 +0,0 @@ -if (typeof Promise === "undefined") { - require("promise/lib/rejection-tracking").enable(); - window.Promise = require("promise/lib/es6-extensions.js"); -} - -require("whatwg-fetch"); diff --git a/client/configuration/webpack/webpack.config.dev.js b/client/configuration/webpack/webpack.config.dev.js index e8a9db9e..7bbfa9ca 100644 --- a/client/configuration/webpack/webpack.config.dev.js +++ b/client/configuration/webpack/webpack.config.dev.js @@ -13,7 +13,6 @@ module.exports = { entry: [ "webpack-hot-middleware/client?quiet=true&noInfo=true", require.resolve("react-hot-loader/patch"), - "babel-polyfill", "./src/index" ], output: { diff --git a/client/configuration/webpack/webpack.config.prod.js b/client/configuration/webpack/webpack.config.prod.js index 6be852cc..a69ff5db 100644 --- a/client/configuration/webpack/webpack.config.prod.js +++ b/client/configuration/webpack/webpack.config.prod.js @@ -17,7 +17,7 @@ module.exports = { bail: true, cache: false, devtool: "cheap-source-map", - entry: ["babel-polyfill", "./src/index"], + entry: ["./src/index"], output: { path: path.resolve("build"), filename: "static/js/[name].[chunkhash:8].js", diff --git a/client/package.json b/client/package.json index d0c081db..9b894109 100644 --- a/client/package.json +++ b/client/package.json @@ -27,7 +27,6 @@ "eslint-scope": "3.7.1" }, "dependencies": { - "babel-polyfill": "^6.26.0", "canvas-fit": "^1.5.0", "d3": "^4.10.0", "font-color-contrast": "^1.0.3", @@ -38,7 +37,6 @@ "mouse-position": "^2.0.1", "mouse-pressed": "^1.0.0", "orbit-camera": "^1.0.0", - "promise": "^7.1.1", "query-string": "^6.1.0", "react": "^16.4.2", "react-autocomplete": "^1.7.2", @@ -51,8 +49,7 @@ "redux-thunk": "^2.2.0", "regl": "^1.3.1", "scroll-speed": "^1.0.0", - "urijs": "^1.19.0", - "whatwg-fetch": "^2.0.3" + "urijs": "^1.19.0" }, "devDependencies": { "autoprefixer": "^9.1.1",