<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] ### 支持`let`、`const`、箭頭函數等 ``` yarn add --dev @babel/core @babel/preset-env ``` 安裝用于Babel的Webpack Loader [babel-loader文檔](https://webpack.docschina.org/loaders/babel-loader/) ``` yarn add --dev babel-loader ``` 在`webpack.config.js`中配置`babel-loader` ``` module.exports = { module: { rules: [ ...... { test: /\.(js)$/, exclude: /node_modules/, loader: 'babel-loader' } ] } } ``` 在`package.json`的同級目錄新建`.babelrc`文件 ``` { "presets": [ "@babel/preset-env" ], "plugins": [] } ``` 此時我們寫的代碼中的es6與語法已經被轉換了,但`webpackBootstrap`中的還沒有轉換,需要在`webpack.config.js`中配置target為false ```js module.exports = { // ... target: false, }; ``` [target文檔](https://webpack.docschina.org/configuration/target/#root) ***** ### 支持類`class` ``` yarn add --dev @babel/plugin-proposal-class-properties ``` 配置`.babelrc` ``` { "presets": [ "@babel/preset-env" ], "plugins": ["@babel/plugin-proposal-class-properties"] } ``` ### 支持`[].includes()`、`Promise`等 ``` yarn add --dev @babel/plugin-transform-runtime yarn add --dev @babel/runtime-corejs3 ``` 配置`.babelrc` ``` { "presets": [ "@babel/preset-env" ], "plugins": [ [ "@babel/plugin-transform-runtime", { "corejs": 3 } ], "@babel/plugin-proposal-class-properties" ] } ``` ### 在`async`函數外部使用`await`字段 在`webpack.config.js`中添加 ```js module.exports = { // ... experiments: { topLevelAwait: true } }; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看