fix ie8 babel bug via es3ify-loader, ref ant-tool/atool-build#28

This commit is contained in:
afc163 2015-12-18 14:35:09 +08:00
parent 424166d335
commit 1fbaf0b5b5
2 changed files with 6 additions and 3 deletions

View File

@ -77,14 +77,13 @@
"babel-jest": "^6.0.1",
"babel-loader": "^6.2.0",
"babel-plugin-add-module-exports": "^0.1.1",
"babel-plugin-transform-es3-member-expression-literals": "^6.3.13",
"babel-plugin-transform-es3-property-literals": "^6.3.13",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"babel-preset-stage-0": "^6.1.18",
"busboy": "^0.2.9",
"chalk": "^1.1.0",
"css-loader": "^0.23.0",
"es3ify-loader": "^0.1.0",
"eslint": "^1.1.0",
"eslint-config-airbnb": "^1.0.0",
"eslint-plugin-babel": "^3.0.0",

View File

@ -21,12 +21,16 @@ module.exports = {
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'es3ify',
}, {
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'react', 'stage-0'],
plugins: ['add-module-exports', 'transform-es3-member-expression-literals', 'transform-es3-property-literals']
plugins: ['add-module-exports']
}
}, {
test: /\.json$/,