浏览代码

Добавил настройки плагинов для babel

Book Pauk 6 年之前
父节点
当前提交
3612327245
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      build/webpack.base.config.js

+ 8 - 1
build/webpack.base.config.js

@@ -17,7 +17,14 @@ module.exports = {
             {
                 test: /\.js$/,
                 loader: 'babel-loader',
-                exclude: /node_modules/
+                exclude: /node_modules/,
+                query: {
+                    plugins: [
+                        'syntax-dynamic-import',
+                        'transform-decorators-legacy',
+                        'transform-class-properties'
+                    ]
+                }
             },
             {
                 test: /\.gif$/,