From aaee7986bd17ac6bcea763ed0d4ff35fa9c8a482 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Thu, 8 Sep 2016 11:09:15 +0800 Subject: [PATCH] update site config --- package.json | 3 +-- site/bisheng.config.js | 8 ++++++++ site/theme/static/template.html | 11 +++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 950e3cbd7..65ca6fc89 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "babel-eslint": "^6.0.2", "babel-jest": "^13.2.2", "babel-plugin-antd": "^0.4.0", + "babel-plugin-transform-runtime": "~6.15.0", "bisheng": "^0.12.0", "bisheng-plugin-antd": "~0.2.0", "bisheng-plugin-description": "^0.1.1", @@ -97,8 +98,6 @@ "eslint-plugin-react": "^6.1.2", "eslint-tinker": "^0.3.1", "history": "^3.0.0", - "intl": "^1.2.2", - "intl-locales-supported": "^1.0.0", "jest-cli": "^13.2.3", "jsonml-to-react-component": "~0.2.0", "jsonml.js": "^0.1.0", diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 7a77f6ef4..c9fefb4a0 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -71,6 +71,14 @@ module.exports = { 'react-router': 'react-router/umd/ReactRouter', }; + config.babel.plugins.push([ + require.resolve('babel-plugin-transform-runtime'), + { + polyfill: false, + regenerator: true, + }, + ]); + config.babel.plugins.push([ require.resolve('babel-plugin-antd'), { diff --git a/site/theme/static/template.html b/site/theme/static/template.html index b0b084ca9..3e47442d7 100644 --- a/site/theme/static/template.html +++ b/site/theme/static/template.html @@ -10,6 +10,11 @@ +
@@ -45,12 +50,6 @@ /* eslint-enable */ } -