Skip to content

Commit

Permalink
add babel-polyfill in build process for css-loader
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tlicata committed Feb 11, 2016
1 parent a191b09 commit 1eb9fdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
var path = require("path");

// css-loader requires a recent version of node since they removed the
// shim for Promise. Bring in babel-polyfill in case running on an old
// system.
// https://github.com/webpack/css-loader/issues/144
require("babel-polyfill");

module.exports = {
entry: path.resolve(__dirname, "app/index.js"),
output: {
Expand Down

0 comments on commit 1eb9fdd

Please sign in to comment.