diff --git a/.babelrc b/.babelrc index cbd2b61..56f3104 100644 --- a/.babelrc +++ b/.babelrc @@ -1,12 +1,7 @@ { "presets": [ ["@babel/preset-env", { - modules: false, - useBuiltIns: "usage", - debug: true, - targets: { - browsers: ["iOS 5"] - } + modules: false }], "@babel/preset-react", "@babel/preset-flow" diff --git a/webpack.config.js b/webpack.config.js index 0c38752..cec093a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,7 +16,7 @@ const configPath = env => { module.exports = env => ({ entry: { - main: [configPath(env), + main: ["@babel/polyfill", configPath(env), path.resolve(__dirname, 'src/index.jsx')] }, resolve: { @@ -35,7 +35,7 @@ module.exports = env => ({ // TODO: CSS follow imports and minify + sourcemap on production { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] }, { test: /\.(woff2?|eot|ttf|svg)$/, loader: "file-loader" }, - { test: /\.js(x)?$/, exclude: /node_modules/, loader: "babel-loader?cacheDirectory=true" } + { test: /\.js(x)?$/, loader: "babel-loader?cacheDirectory=true" } ] }, plugins: [