diff --git a/.roadhogrc b/.roadhogrc index 559cb327d2e01361d46c93eed1753b88211c15f5..e64dacf034a7a0b340d887b5a90045cbcbd2c09e 100755 --- a/.roadhogrc +++ b/.roadhogrc @@ -1,21 +1,15 @@ { "entry": "src/index.js", + "extraBabelPlugins": [ + "transform-runtime", + "transform-decorators-legacy", + "transform-class-properties", + ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }] + ], "env": { "development": { "extraBabelPlugins": [ - "dva-hmr", - "transform-runtime", - "transform-decorators-legacy", - "transform-class-properties", - ["import", { "libraryName": "antd", "style": true }] - ] - }, - "production": { - "extraBabelPlugins": [ - "transform-runtime", - "transform-decorators-legacy", - "transform-class-properties", - ["import", { "libraryName": "antd", "style": true }] + "dva-hmr" ] } },