Ember CLI - 在Mac上Babel太慢了

时间:2016-06-28 08:09:54

标签: ember-cli babeljs

从最近几天开始,我的余烬很慢,这是输出

version: 2.4.2
Livereload server on http://localhost:49152
Serving on http://localhost:4200/

Build successful - 76337ms.

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
Babel                                         | 70809ms             

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (20)                                    | 72361ms (3618 ms)   

我该如何调试和修复它。我在Mac上检查过它(SSD + 16gb Ram)

修改

将npm更新到最新版本后,清理npm缓存,并重新安装所有节点包。这是非常快,但经过几次重建,它再次变得缓慢。

Build successful - 56809ms.

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
Babel                                         | 55422ms             

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (20)                                    | 55580ms (2779 ms)   

编辑#2

与此处更改的文件有关的是两个结果

file changed site/components/site/carpets/neworderform-form/template.hbs - 1822 lines in this template

Build successful - 62844ms.

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
Babel                                         | 61122ms             

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (20)                                    | 61280ms (3064 ms)   

file changed site/components/site/countries/country-form/template.hbs - 64 lines total in this template

Build successful - 1322ms.

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
SourceMapConcat: Concat: App                  | 424ms               
SourceMapConcat: Concat: App Tests            | 77ms                

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
SourceMapConcat: Concat: App (1)              | 424ms               
Babel (20)                                    | 199ms (9 ms)        
SourceMapConcat: Concat: App Tests (1)        | 77ms                

编辑3(2天后)

现在我想我真的应该解决这个问题,否则我无法解决这个问题。

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
Babel                                         | 146179ms            

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (20)                                    | 170889ms (8544 ms)  

0 个答案:

没有答案