Skip to content

Commit

Permalink
Don't append .js extension to .cjs files (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyydotp authored Feb 21, 2023
1 parent 5ae00f5 commit 78b8316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ class LaunchEntryPointProcessor extends BaseProcessor {
}

appendJSExt(filePath: string): string {
if (filePath.endsWith('.js')) {
if (filePath.endsWith('.js') || filePath.endsWith('.cjs')) {
return filePath;
}
return filePath + '.js';
Expand Down

0 comments on commit 78b8316

Please sign in to comment.