From 458ff5793a6d088c5813a05173a35675f453267d Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 25 Apr 2022 13:33:09 +0200 Subject: [PATCH] fix(rollup): prepend `node_modules` to `moduleDirectories` resolves #136 --- src/rollup/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/config.ts b/src/rollup/config.ts index c72b68bb6b..eb29be0d98 100644 --- a/src/rollup/config.ts +++ b/src/rollup/config.ts @@ -280,7 +280,7 @@ export const plugins = [ extensions, preferBuiltins: true, rootDir: nitro.options.rootDir, - moduleDirectories: nitro.options.nodeModulesDirs, + moduleDirectories: ['node_modules'].concat(nitro.options.nodeModulesDirs), // 'module' is intentionally not supported because of externals mainFields: ['main'], exportConditions: [