Преглед на файлове

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