mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix: add node_modules
from cwd to nodeResolve
This commit is contained in:
parent
4890205b6e
commit
4685108c16
@ -173,7 +173,8 @@ export const getRollupConfig = (sigmaContext: SigmaContext) => {
|
||||
rootDir: sigmaContext._nuxt.rootDir,
|
||||
moduleDirectories: [
|
||||
resolve(sigmaContext._nuxt.rootDir, 'node_modules'),
|
||||
resolve(MODULE_DIR, 'node_modules')
|
||||
resolve(MODULE_DIR, 'node_modules'),
|
||||
'node_modules'
|
||||
],
|
||||
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user