Skip to content

Commit

Permalink
fix: use node-resolve's modulePaths
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 12, 2022
1 parent 34a718b commit 76ddc5b
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 76ddc5b

Please sign in to comment.