久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='ueNpN'></small><noframes id='ueNpN'>

<tfoot id='ueNpN'></tfoot>
<i id='ueNpN'><tr id='ueNpN'><dt id='ueNpN'><q id='ueNpN'><span id='ueNpN'><b id='ueNpN'><form id='ueNpN'><ins id='ueNpN'></ins><ul id='ueNpN'></ul><sub id='ueNpN'></sub></form><legend id='ueNpN'></legend><bdo id='ueNpN'><pre id='ueNpN'><center id='ueNpN'></center></pre></bdo></b><th id='ueNpN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ueNpN'><tfoot id='ueNpN'></tfoot><dl id='ueNpN'><fieldset id='ueNpN'></fieldset></dl></div>
    <bdo id='ueNpN'></bdo><ul id='ueNpN'></ul>

<legend id='ueNpN'><style id='ueNpN'><dir id='ueNpN'><q id='ueNpN'></q></dir></style></legend>
    1. Gulp babel es2015 轉換很慢

      Gulp babel es2015 transform very slow(Gulp babel es2015 轉換很慢)
        • <bdo id='PeRT5'></bdo><ul id='PeRT5'></ul>
        • <i id='PeRT5'><tr id='PeRT5'><dt id='PeRT5'><q id='PeRT5'><span id='PeRT5'><b id='PeRT5'><form id='PeRT5'><ins id='PeRT5'></ins><ul id='PeRT5'></ul><sub id='PeRT5'></sub></form><legend id='PeRT5'></legend><bdo id='PeRT5'><pre id='PeRT5'><center id='PeRT5'></center></pre></bdo></b><th id='PeRT5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PeRT5'><tfoot id='PeRT5'></tfoot><dl id='PeRT5'><fieldset id='PeRT5'></fieldset></dl></div>

            <tfoot id='PeRT5'></tfoot>

              <tbody id='PeRT5'></tbody>

              <legend id='PeRT5'><style id='PeRT5'><dir id='PeRT5'><q id='PeRT5'></q></dir></style></legend>

              • <small id='PeRT5'></small><noframes id='PeRT5'>

                本文介紹了Gulp babel es2015 轉換很慢的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在嘗試使用 gulp 在我的 JavaScript 上運行 babel-preset-es2015,但即使在一行代碼上也需要很長時間.我最初嘗試使用大約 700 loc 的腳本包,然后使用 1 行的虛擬腳本.第一種情況大約需要 9s - 1 行 i 需要 8.38s.

                I am trying to run the babel-preset-es2015 on my JavaScript using gulp, but it takes forever even on one line of code. I originally tried with my script bundle that is about 700 loc, and then with a dummy script that is 1 line. The first case takes about 9s - with 1 line i takes 8.38s.

                這是我的確切設置:

                package.json:

                package.json:

                {
                    "devDependencies": {
                        "gulp": "^3.9.0",
                        "gulp-babel": "^6.1.1",
                        "babel": "^6.3.26",
                        "babel-preset-es2015": "^6.3.13"
                    }, 
                   "babel": {
                       "presets": [ "es2015" ]
                    }
                }
                

                gulpfile.js:

                gulpfile.js:

                gulp.task('js', function () {
                    return gulp.src('dummyscript.js')
                      .pipe(concat('site.bundle.js'))   
                      .pipe(babel())  
                      .pipe(gulp.dest(paths.dest.scripts));
                
                });
                

                dummy.js:

                console.log('dummy script');
                

                我正在運行 node v4.2.4 和 npm v2.14.12.

                I'm running node v4.2.4 and npm v2.14.12.

                gulp-react 和 gulp-uglify 等其他操作加起來大約需要 180 毫秒.

                Other operations like gulp-react and gulp-uglify all take about 180ms combined.

                發(fā)生了什么事?

                推薦答案

                Babel 6 有很多高度嵌套的子依賴.如果你有一個非扁平的依賴樹,這可能會很慢.在您的情況下,您使用的是 npm 2,您將需要 npm dedupe 或安裝 npm@3 并重新安裝,以便您的依賴項被扁平化.

                Babel 6 has many highly-nested subdependencies. This can be quite slow if you have a non-flattened dependency tree. In your case, you are using npm 2, you will need to either npm dedupe or install npm@3 and reinstall so that your dependencies are flattened.

                這篇關于Gulp babel es2015 轉換很慢的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

                <legend id='1MuhV'><style id='1MuhV'><dir id='1MuhV'><q id='1MuhV'></q></dir></style></legend>
                    <tbody id='1MuhV'></tbody>
                  <i id='1MuhV'><tr id='1MuhV'><dt id='1MuhV'><q id='1MuhV'><span id='1MuhV'><b id='1MuhV'><form id='1MuhV'><ins id='1MuhV'></ins><ul id='1MuhV'></ul><sub id='1MuhV'></sub></form><legend id='1MuhV'></legend><bdo id='1MuhV'><pre id='1MuhV'><center id='1MuhV'></center></pre></bdo></b><th id='1MuhV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1MuhV'><tfoot id='1MuhV'></tfoot><dl id='1MuhV'><fieldset id='1MuhV'></fieldset></dl></div>
                    <bdo id='1MuhV'></bdo><ul id='1MuhV'></ul>
                      <tfoot id='1MuhV'></tfoot>

                      <small id='1MuhV'></small><noframes id='1MuhV'>

                          主站蜘蛛池模板: 欧洲亚洲精品久久久久 | 日韩精品成人网 | 欧美日韩在线国产 | 91精品国产综合久久精品图片 | 91大神在线看 | 91网在线观看 | 隔壁老王国产在线精品 | 亚洲欧美日本在线 | 综合国产| 国产精品视频一 | 亚洲综合色婷婷 | 91观看| 欧美激情99 | 欧美一级特黄aaa大片在线观看 | 日本精品视频 | 91精品麻豆日日躁夜夜躁 | 国产精品久久久久久久毛片 | 一区二区久久精品 | 91麻豆精品国产91久久久久久久久 | www中文字幕 | 免费观看的av毛片的网站 | 91视频在线 | 国产精品久久久久久久久久免费看 | 人操人免费视频 | 久久久久久免费毛片精品 | 91看片在线观看 | 亚洲一区二区三区视频 | 亚洲精品中文字幕在线观看 | 日韩精品无码一区二区三区 | 国产精品人人做人人爽 | 中文字幕第100页 | 久久久资源 | 精品久久精品 | 久久国产精品一区二区三区 | 久久综合久久综合久久综合 | 可以在线看的黄色网址 | 精品视频国产 | 天天操夜夜操免费视频 | 色视频www在线播放国产人成 | 国内精品视频 | 婷婷狠狠|