From 874afcc31da8b2422e5b1655b08b57952182ad42 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Thu, 2 Nov 2017 21:03:45 -0500 Subject: [PATCH] Use es module (#86) --- .roadhogrc | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.roadhogrc b/.roadhogrc index 559cb327..e64dacf0 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" ] } }, -- GitLab