Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ export function checkCommonJSModules(
}

if (notAllowed) {
// Issue a diagnostic message and skip all descendants since they are also most
// likely not ESM but solved by addressing this import.
// Issue a diagnostic message for CommonJS module
messages.push(createCommonJSModuleError(request, currentFile));
continue;
}

// Skip all descendants since they are also most likely not ESM but solved by addressing this import
continue;
}

// Add the path so that its imports can be checked
Expand Down