Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/getModuleLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getModuleLocation(
if (requirePath && requirePath.length > 0) {
modulePath = path.join(...requirePath);
} else if (!rootNodeModule) {
modulePath = 'index';
modulePath = 'module'+mod.id; // name the file based on id to avoid conflict
} else {
// If a root node module, then leave it empty. The root node module's index is implied.
// Ie, you don't need to do `foo/index`, you can just do `foo`.
Expand Down