diff --git a/package.json b/package.json index 60bf6539..a778ad8a 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "webpack": "*" }, "dependencies": { + "babel-polyfill": "^6.3.14", "chalk": "^1.1.1", "escape-regexp": "0.0.1", "js-yaml": "^3.4.3", diff --git a/src/bootstrap.loader.js b/src/bootstrap.loader.js index a0633427..1db7f7f3 100644 --- a/src/bootstrap.loader.js +++ b/src/bootstrap.loader.js @@ -1,5 +1,7 @@ /* eslint func-names: 0 */ +import 'babel-polyfill'; + import path from 'path'; import loaderUtils from 'loader-utils'; diff --git a/src/utils/buildExtractStylesLoader.js b/src/utils/buildExtractStylesLoader.js index a6b62aab..47ff8d50 100644 --- a/src/utils/buildExtractStylesLoader.js +++ b/src/utils/buildExtractStylesLoader.js @@ -22,6 +22,11 @@ export default function(loaders) { Make sure it's installed in your 'node_modules/' directory. `); } - const restLoaders = loaders.slice(1).map(loader => loader + '!').join(''); + const restLoaders = ( + loaders + .slice(1) + .map(loader => loader + '!') + .join('') + ); return ExtractTextPlugin.extract('style', restLoaders); }