mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-01 11:59:10 -06:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user