Skip to content

Instantly share code, notes, and snippets.

@HerringtonDarkholme
Created May 24, 2016 16:28
Show Gist options
  • Save HerringtonDarkholme/369e25be4527aed6f54bd816892fb838 to your computer and use it in GitHub Desktop.
Save HerringtonDarkholme/369e25be4527aed6f54bd816892fb838 to your computer and use it in GitHub Desktop.
babel5 breaks when promise is included
// webpack.config.js
module.exports = {
entry: {
'test': './test',
},
output: {
filename: 'output.js',
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
query: {
optional: ['runtime'],
stage: 3,
loose: 'all',
},
},
],
},
};
// package.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-core": "^5.8.38",
"babel-loader": "^5.4.0",
"babel-runtime": "^5.8.38",
"webpack": "^1.13.1"
}
}
// test.js
Promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment