From 4685108c16d908ffae93610da8c7e15703ee4313 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 2 Dec 2020 14:22:34 +0100 Subject: [PATCH] fix: add `node_modules` from cwd to nodeResolve --- packages/nitro/src/rollup/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nitro/src/rollup/config.ts b/packages/nitro/src/rollup/config.ts index e0c84e12e9..80fae2c5f8 100644 --- a/packages/nitro/src/rollup/config.ts +++ b/packages/nitro/src/rollup/config.ts @@ -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) }))