Skip to content

Commit

Permalink
fix: fix config merging during vue invoke in Node.js v12 (#4148)
Browse files Browse the repository at this point in the history
The root cause here is the same as #4095
The failing `loadModule` call will return `undefined` for a js config
read operation, which later caused config being overwritten.
  • Loading branch information
sodatea committed Jun 15, 2019
1 parent 570588f commit 8283f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/util/configTransforms.js
Expand Up @@ -13,7 +13,7 @@ const isObject = val => val && typeof val === 'object'
const transformJS = {
read: ({ filename, context }) => {
try {
return loadModule(filename, context, true)
return loadModule(`./${filename}`, context, true)
} catch (e) {
return null
}
Expand Down

0 comments on commit 8283f46

Please sign in to comment.