Skip to content

Commit

Permalink
Add babel-polyfill for old Node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil committed Jan 6, 2016
1 parent b1ef58b commit b3ddaa8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap.loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint func-names: 0 */

import 'babel-polyfill';

import path from 'path';
import loaderUtils from 'loader-utils';

Expand Down
7 changes: 6 additions & 1 deletion src/utils/buildExtractStylesLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b3ddaa8

Please sign in to comment.