mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix resolution when linking
This commit is contained in:
parent
87df0ac986
commit
54bb617474
@ -82,6 +82,11 @@ export const getRollupConfig = (config) => {
|
|||||||
options.plugins.push(resolve({
|
options.plugins.push(resolve({
|
||||||
extensions,
|
extensions,
|
||||||
preferBuiltins: true,
|
preferBuiltins: true,
|
||||||
|
rootDir: config.rootDir,
|
||||||
|
// https://www.npmjs.com/package/resolve
|
||||||
|
customResolveOptions: {
|
||||||
|
basedir: config.rootDir
|
||||||
|
},
|
||||||
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
|
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user