Created
May 24, 2016 16:28
-
-
Save HerringtonDarkholme/369e25be4527aed6f54bd816892fb838 to your computer and use it in GitHub Desktop.
babel5 breaks when promise is included
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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