mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix ie8 babel bug via es3ify-loader, ref ant-tool/atool-build#28
This commit is contained in:
parent
424166d335
commit
1fbaf0b5b5
@ -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",
|
||||
|
@ -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$/,
|
||||
|
Loading…
Reference in New Issue
Block a user