From dbbebb402e81cb830dfd9f8b27d0da7c82ed9ac8 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 2 May 2018 10:13:46 +0800 Subject: [PATCH] docs: add 0.4.3 changelog --- CHANGELOG.en-US.md | 7 +++++++ CHANGELOG.zh-CN.md | 7 +++++++ antd-tools/gulpfile.js | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index d03f2bc22..4106c8c29 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -2,6 +2,13 @@ --- +## 0.4.3 + +`2018-05-02` + +- 🐞 Fix component style loss problem +- 🌟 site add babel-polyfill + ## 0.4.2 `2018-04-24` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 5028a04dd..9114422fc 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -2,6 +2,13 @@ --- +## 0.4.3 + +`2018-05-02` + +- 🐞 修复组件样式丢失问题 +- 🌟 站点添加babel-polyfill + ## 0.4.2 `2018-04-24` diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index c340cbddf..4baef31f9 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -78,12 +78,12 @@ function babelify (js, modules) { let stream = js.pipe(babel(babelConfig)) .pipe(through2.obj(function z (file, encoding, next) { this.push(file.clone()) - if (file.path.match(/\/style\/index\.js/)) { + if (file.path.match(/\/style\/index\.(js|jsx)$/)) { const content = file.contents.toString(encoding) file.contents = Buffer.from(content .replace(/\/style\/?'/g, '/style/css\'') .replace(/\.less/g, '.css')) - file.path = file.path.replace(/index\.js/, 'css.js') + file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js') this.push(file) next() } else {