diff --git a/.babelrc b/.babelrc deleted file mode 100644 index a9b68d1..0000000 --- a/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": ["@babel/plugin-syntax-dynamic-import"] -} diff --git a/webpack.mix.js b/webpack.mix.js index 5505084..ef16174 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -30,5 +30,8 @@ mix.js('resources/js/app.js', 'public/js') }, }, }) + .babelConfig({ + plugins: ['@babel/plugin-syntax-dynamic-import'], + }) .version() .sourceMaps()