mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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({
|
||||
extensions,
|
||||
preferBuiltins: true,
|
||||
rootDir: config.rootDir,
|
||||
// https://www.npmjs.com/package/resolve
|
||||
customResolveOptions: {
|
||||
basedir: config.rootDir
|
||||
},
|
||||
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
|
||||
}))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user