Преглед изворни кода

Добавил настройки плагинов для 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$/,