Transpile dependencies for wider browser support

This commit ensures that all dependencies in `node_modules` will be
transpiled by Babel.

Dependencies are not transpiled by babel as default. `babel-loader`
ignores all files inside `node_modules`.

Not using it may allow packages using newer JavaScript (such as ES6) to
cause unintended crashed on older browsers.

This configuration is the default in projects created by newer versions
of Vue CLI.
This commit is contained in:
undergroundwires
2022-01-20 20:07:49 +01:00
parent 834ce8cf9e
commit 0e52a99efa

View File

@@ -5,6 +5,7 @@ const packageJson = require('./package.json');
loadVueAppRuntimeVariables();
module.exports = defineConfig({
transpileDependencies: true,
chainWebpack: (config) => {
changeAppEntryPoint('./src/presentation/main.ts', config);
},