switch to babel-polyfill

This commit is contained in:
bkmartinjr
2018-08-13 17:07:53 -07:00
parent 113cf17183
commit 831ef283a0
2 changed files with 3 additions and 5 deletions
@@ -13,8 +13,8 @@ module.exports = {
entry: [ entry: [
"webpack-hot-middleware/client?quiet=true&noInfo=true", "webpack-hot-middleware/client?quiet=true&noInfo=true",
require.resolve("react-hot-loader/patch"), require.resolve("react-hot-loader/patch"),
require.resolve("../polyfills/polyfills"), "babel-polyfill",
path.join(src, "index") "./src/index"
], ],
output: { output: {
path: path.resolve("build"), path: path.resolve("build"),
@@ -17,12 +17,10 @@ module.exports = {
bail: true, bail: true,
cache: false, cache: false,
devtool: "cheap-source-map", devtool: "cheap-source-map",
// XXX todo: why are we using our own polyfill and not babel-polyfill? entry: ["babel-polyfill", "./src/index"],
entry: [require.resolve("../polyfills/polyfills"), path.join(src, "index")],
output: { output: {
path: path.resolve("build"), path: path.resolve("build"),
filename: "static/js/[name].[chunkhash:8].js", filename: "static/js/[name].[chunkhash:8].js",
// chunkFilename: "static/js/[name].[chunkhash:8].chunk.js",
publicPath publicPath
}, },
module: { module: {