Skip to content

Commit 1eb9fdd

Browse files
committed
add babel-polyfill in build process for css-loader
i tried to run the build scripts on an ubuntu machine with an old install of node and hit an error due to Promise being undefined. webpack-contrib/css-loader#144
1 parent a191b09 commit 1eb9fdd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
var path = require("path");
22

3+
// css-loader requires a recent version of node since they removed the
4+
// shim for Promise. Bring in babel-polyfill in case running on an old
5+
// system.
6+
// https://github.com/webpack/css-loader/issues/144
7+
require("babel-polyfill");
8+
39
module.exports = {
410
entry: path.resolve(__dirname, "app/index.js"),
511
output: {

0 commit comments

Comments
 (0)