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:
@@ -5,6 +5,7 @@ const packageJson = require('./package.json');
|
||||
loadVueAppRuntimeVariables();
|
||||
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
chainWebpack: (config) => {
|
||||
changeAppEntryPoint('./src/presentation/main.ts', config);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user