Skip to content

Commit

Permalink
fix(rollup): prepend node_modules to moduleDirectories
Browse files Browse the repository at this point in the history
resolves #136
  • Loading branch information
pi0 committed Apr 25, 2022
1 parent 9709907 commit 458ff57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 458ff57

Please sign in to comment.