deps: babel5 - babel6 #7

Merged
merged 1 commit into from Nov 18, 2015

Conversation

Projects
None yet
2 participants
@sorrycc
Member

sorrycc commented Nov 18, 2015

Close ant-design/ant-design#457


感觉 babel 6 有性能问题。一个最简单的例子,webpack 的打包和 babel-core/register 都慢很多:

babel6

$ time atool-build --debug
Hash: 3475bf357b668726adbc
Version: webpack 1.12.6
Time: 834ms
        Asset       Size  Chunks             Chunk Names
    common.js    3.68 kB       0  [emitted]  common
     index.js  130 bytes    1, 0  [emitted]  index
common.js.map    3.71 kB       0  [emitted]  common
 index.js.map  265 bytes    1, 0  [emitted]  index
chunk    {0} common.js, common.js.map (common) 0 bytes [rendered]
chunk    {1} index.js, index.js.map (index) 17 bytes {0} [rendered]
    [0] ./index.js 17 bytes {1} [built]
atool-build --debug  6.29s user 1.07s system 79% cpu 9.251 total

babel5

$ time atool-build --debug
Hash: 9b844674ff0c73760b4c
Version: webpack 1.12.6
Time: 195ms
        Asset       Size  Chunks             Chunk Names
    common.js    3.68 kB       0  [emitted]  common
     index.js  144 bytes    1, 0  [emitted]  index
common.js.map    3.71 kB       0  [emitted]  common
 index.js.map  240 bytes    1, 0  [emitted]  index
chunk    {0} common.js, common.js.map (common) 0 bytes [rendered]
chunk    {1} index.js, index.js.map (index) 30 bytes {0} [rendered]
    [0] ./index.js 30 bytes {1} [built]
atool-build --debug  1.64s user 0.22s system 64% cpu 2.894 total

@sorrycc sorrycc referenced this pull request in ant-design/ant-design Nov 18, 2015

Closed

Follow Babel 6 #457

@sorrycc

This comment has been minimized.

Show comment
Hide comment
@sorrycc

sorrycc Nov 18, 2015

Member

切换到 npm3,已无性能问题。

Member

sorrycc commented Nov 18, 2015

切换到 npm3,已无性能问题。

sorrycc added a commit that referenced this pull request Nov 18, 2015

@sorrycc sorrycc merged commit decdad7 into master Nov 18, 2015

@sorrycc sorrycc deleted the babel-6 branch Nov 18, 2015

@sorrycc sorrycc referenced this pull request Nov 20, 2015

Closed

0.1.0 #9

9 of 11 tasks complete
@githubchina

This comment has been minimized.

Show comment
Hide comment

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment