Skip to content

Commit

Permalink
fix: use node-resolve's modulePaths (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 12, 2022
1 parent c605563 commit ef4fc58
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 @@ -281,7 +281,7 @@ export const plugins = [
extensions,
preferBuiltins: !!nitro.options.node,
rootDir: nitro.options.rootDir,
moduleDirectories: ['node_modules'].concat(nitro.options.nodeModulesDirs),
modulePaths: nitro.options.nodeModulesDirs,
// 'module' is intentionally not supported because of externals
mainFields: ['main'],
exportConditions: [
Expand Down

0 comments on commit ef4fc58

Please sign in to comment.