From 54bb617474089c19e92a51b19aac9fbcbb0ca6d6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 2 Nov 2020 13:12:39 +0100 Subject: [PATCH] fix resolution when linking --- packages/nitro/src/rollup.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nitro/src/rollup.config.ts b/packages/nitro/src/rollup.config.ts index 334f52df4e..450fbaffe0 100644 --- a/packages/nitro/src/rollup.config.ts +++ b/packages/nitro/src/rollup.config.ts @@ -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) }))