Skip to content

Commit 78b8316

Browse files
authored
Don't append .js extension to .cjs files (#825)
1 parent 5ae00f5 commit 78b8316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/package.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ class LaunchEntryPointProcessor extends BaseProcessor {
985985
}
986986

987987
appendJSExt(filePath: string): string {
988-
if (filePath.endsWith('.js')) {
988+
if (filePath.endsWith('.js') || filePath.endsWith('.cjs')) {
989989
return filePath;
990990
}
991991
return filePath + '.js';

0 commit comments

Comments
 (0)