Skip to content

Commit 8283f46

Browse files
authored
fix: fix config merging during vue invoke in Node.js v12 (#4148)
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.
1 parent 570588f commit 8283f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli/lib/util/configTransforms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const isObject = val => val && typeof val === 'object'
1313
const transformJS = {
1414
read: ({ filename, context }) => {
1515
try {
16-
return loadModule(filename, context, true)
16+
return loadModule(`./${filename}`, context, true)
1717
} catch (e) {
1818
return null
1919
}

0 commit comments

Comments
 (0)