Skip to content

Commit 8dbd7fe

Browse files
fix #89: Use js loader for cjs files in CDK
1 parent 43102fe commit 8dbd7fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ If you have a new feature idea, please create and issue.
332332
- [Roger Chi](https://rogerchi.com/)
333333
- [Sebastian / avocadomaster](https://github.com/avocadomaster)
334334
- [Sebastian Bille](https://blog.sebastianbille.com)
335+
- [Spotchi](https://github.com/Spotchi)
335336
- ⭐ Your name here for notable code or documentation contributions or sample projects submitted with a bug report that resulted in tool improvement.
336337

337338
## Disclaimer

src/frameworks/cdkFramework.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class CdkFramework implements IFramework {
283283
// for .mjs files, use js loader
284284
const fileExtension = args.path.split('.').pop();
285285
const loader: esbuild.Loader =
286-
(fileExtension === 'mjs' || fileExtension === 'cjs')
286+
fileExtension === 'mjs' || fileExtension === 'cjs'
287287
? 'js'
288288
: (fileExtension as esbuild.Loader);
289289
// Inject code to get the file path of the Lambda function and CDK hierarchy

0 commit comments

Comments
 (0)