Forráskód Böngészése

fix: Use proper syntax for plugin-syntax-dynamic-import

Johannes Schill 6 éve
szülő
commit
be3f9fcbfe
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scripts/webpack/webpack.hot.js

+ 1 - 1
scripts/webpack/webpack.hot.js

@@ -56,7 +56,7 @@ module.exports = merge(common, {
               plugins: [
               plugins: [
                 [require('@rtsao/plugin-proposal-class-properties'), { loose: true }],
                 [require('@rtsao/plugin-proposal-class-properties'), { loose: true }],
                 'angularjs-annotate',
                 'angularjs-annotate',
-                'syntax-dynamic-import', // needed for `() => import()` in routes.ts
+                '@babel/plugin-syntax-dynamic-import', // needed for `() => import()` in routes.ts
                 'react-hot-loader/babel',
                 'react-hot-loader/babel',
               ],
               ],
               presets: [
               presets: [