From 774a447288c6dfa686fb1a3b14cc7ad8217e882b Mon Sep 17 00:00:00 2001 From: uwap Date: Sun, 12 Aug 2018 16:41:07 +0200 Subject: [PATCH] Last try of using babel polyfill --- .babelrc | 7 +------ webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) 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: [