We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeddc6f commit c7961cdCopy full SHA for c7961cd
packages/@vue/cli-plugin-babel/index.js
@@ -24,7 +24,9 @@ module.exports = (api, options) => {
24
// try to load the project babel config;
25
// if the default preset is used,
26
// there will be a VUE_CLI_TRANSPILE_BABEL_RUNTIME env var set.
27
- babel.loadPartialConfig()
+ // the `filename` field is required
28
+ // in case there're filename-related options like `ignore` in the user config
29
+ babel.loadPartialConfig({ filename: api.resolve('src/main.js') })
30
31
api.chainWebpack(webpackConfig => {
32
webpackConfig.resolveLoader.modules.prepend(path.join(__dirname, 'node_modules'))
0 commit comments