Browse Source

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

Book Pauk 6 năm trước cách đây
mục cha
commit
3612327245
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  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$/,