Refactor babel.config.js: Simplify Babel preset configuration by using the package name instead of a direct path for improved readability and maintainability.
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
const path = require('path');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
// Direkten Pfad zum Preset verwenden, damit es auch bei Problemen
|
'@vue/cli-plugin-babel/preset'
|
||||||
// mit der Modulauflösung (Node-/npm-Versionen) zuverlässig gefunden wird.
|
|
||||||
path.resolve(__dirname, 'node_modules/@vue/cli-plugin-babel/preset')
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user