diff --git a/.babelrc b/.babelrc index d4ac13b..7c2a047 100644 --- a/.babelrc +++ b/.babelrc @@ -2,20 +2,14 @@ "presets": [ ["babel-preset-env", { "targets": { - "browsers": [ - "> 1%", - "last 4 versions", - "Firefox ESR", - "ios >= 8" - ], + "node": true, "uglify": false }, "spec": true, - "debug": true + "debug": false }] ], "plugins": [ - "babel-plugin-transform-react-constant-elements", "babel-plugin-transform-class-properties", "babel-plugin-syntax-dynamic-import" ] diff --git a/src/.babelrc b/src/.babelrc deleted file mode 100644 index 3bdd031..0000000 --- a/src/.babelrc +++ /dev/null @@ -1,32 +0,0 @@ -{ - "presets": [ - ["babel-preset-env", { - "targets": { - "browsers": [ - "> 1%", - "last 4 versions", - "Firefox ESR", - "ios >= 8" - ], - "uglify": false - }, - /*"spec": true,*/ - "debug": true, - "modules": false - }], - "babel-preset-react" - ], - "plugins": [ - "react-hot-loader/babel", - "babel-plugin-transform-react-constant-elements", - /*"babel-plugin-transform-react-remove-prop-types",*/ - /*"babel-plugin-transform-decorators-legacy",*/ - "babel-plugin-transform-class-properties", - ["babel-plugin-transform-runtime", { - "helpers": false, - "polyfill": false, - "regenerator": true - }], - "babel-plugin-syntax-dynamic-import" - ] -} \ No newline at end of file diff --git a/webpack.config.babel.js b/webpack.config.babel.js index 842d63a..23b553b 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -28,6 +28,13 @@ const { const locales = ['en']; +const autoprefixerTargets = [ + '> 1%', + 'last 4 versions', + 'Firefox ESR', + 'ios >= 8', +]; + /** * Plugin for HtmlPlugin which inlines content for an extracted Webpack manifest * into the HTML in a