Browse Source

use babel-plugin-env

pull/24/head
afc163 9 years ago
parent
commit
9e5bbe7ae9
  1. 2
      .roadhogrc
  2. 9
      package.json

2
.roadhogrc

@ -6,6 +6,7 @@
"dva-hmr", "dva-hmr",
"transform-runtime", "transform-runtime",
"transform-decorators-legacy", "transform-decorators-legacy",
"transform-class-properties",
["import", { "libraryName": "antd", "style": true }] ["import", { "libraryName": "antd", "style": true }]
] ]
}, },
@ -13,6 +14,7 @@
"extraBabelPlugins": [ "extraBabelPlugins": [
"transform-runtime", "transform-runtime",
"transform-decorators-legacy", "transform-decorators-legacy",
"transform-class-properties",
["import", { "libraryName": "antd", "style": true }] ["import", { "libraryName": "antd", "style": true }]
] ]
} }

9
package.json

@ -32,8 +32,11 @@
"babel-jest": "^21.0.0", "babel-jest": "^21.0.0",
"babel-plugin-dva-hmr": "^0.3.2", "babel-plugin-dva-hmr": "^0.3.2",
"babel-plugin-import": "^1.2.1", "babel-plugin-import": "^1.2.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.9.0", "babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-runtime": "^6.9.2", "babel-runtime": "^6.9.2",
"cross-port-killer": "^1.0.1", "cross-port-killer": "^1.0.1",
"enzyme": "^3.1.0", "enzyme": "^3.1.0",
@ -60,12 +63,12 @@
}, },
"babel": { "babel": {
"presets": [ "presets": [
"es2015", "env",
"stage-0",
"react" "react"
], ],
"plugins": [ "plugins": [
"transform-decorators-legacy" "transform-decorators-legacy",
"transform-class-properties"
] ]
}, },
"jest": { "jest": {

Loading…
Cancel
Save