Skip to content

Commit c68542c

Browse files
committed
Fallback to undefined for resolve.modules instead of empty array
1 parent 573b1cf commit c68542c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function ncc (
282282
// webpack defaults to `module` and `main`, but that's
283283
// not really what node.js supports, so we reset it
284284
mainFields: ["main"],
285-
modules: resolveModules,
285+
modules: resolveModules.length > 0 ? resolveModules : undefined,
286286
plugins: resolvePlugins
287287
},
288288
// https://github.com/vercel/ncc/pull/29#pullrequestreview-177152175

0 commit comments

Comments
 (0)