mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix: update node-resolve options
This commit is contained in:
parent
9c25d68511
commit
0a2f9a3949
@ -171,14 +171,10 @@ export const getRollupConfig = (sigmaContext: SigmaContext) => {
|
||||
extensions,
|
||||
preferBuiltins: true,
|
||||
rootDir: sigmaContext._nuxt.rootDir,
|
||||
// https://www.npmjs.com/package/resolve
|
||||
customResolveOptions: {
|
||||
basedir: sigmaContext._nuxt.rootDir,
|
||||
paths: [
|
||||
resolve(sigmaContext._nuxt.rootDir, 'node_modules'),
|
||||
resolve(MODULE_DIR, 'node_modules')
|
||||
]
|
||||
},
|
||||
moduleDirectories: [
|
||||
resolve(sigmaContext._nuxt.rootDir, 'node_modules'),
|
||||
resolve(MODULE_DIR, 'node_modules')
|
||||
],
|
||||
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
|
||||
}))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user