fix: add node_modules from cwd to nodeResolve

This commit is contained in:
Pooya Parsa 2020-12-02 14:22:34 +01:00
parent 4890205b6e
commit 4685108c16

View File

@ -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)
}))