@mrgrain/cdk-esbuild 1.127.0 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/API.md ADDED
@@ -0,0 +1,1685 @@
1
+ # API Reference <a name="API Reference"></a>
2
+
3
+
4
+ ## Structs <a name="Structs"></a>
5
+
6
+ ### AssetBaseProps <a name="@mrgrain/cdk-esbuild.AssetBaseProps"></a>
7
+
8
+ #### Initializer <a name="[object Object].Initializer"></a>
9
+
10
+ ```typescript
11
+ import { AssetBaseProps } from '@mrgrain/cdk-esbuild'
12
+
13
+ const assetBaseProps: AssetBaseProps = { ... }
14
+ ```
15
+
16
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetBaseProps.property.buildOptions"></a>
17
+
18
+ ```typescript
19
+ public readonly buildOptions: BuildOptions;
20
+ ```
21
+
22
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
23
+
24
+ Options passed on to esbuild.
25
+
26
+ ---
27
+
28
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetBaseProps.property.copyDir"></a>
29
+
30
+ ```typescript
31
+ public readonly copyDir: string;
32
+ ```
33
+
34
+ - *Type:* `string`
35
+
36
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
37
+
38
+ ---
39
+
40
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetBaseProps.property.assetHash"></a>
41
+
42
+ ```typescript
43
+ public readonly assetHash: string;
44
+ ```
45
+
46
+ - *Type:* `string`
47
+
48
+ A hash of this asset, which is available at construction time.
49
+
50
+ As this is a plain string, it
51
+ can be used in construct IDs in order to enforce creation of a new resource when the content
52
+ hash has changed.
53
+
54
+ ---
55
+
56
+ ### AssetProps <a name="@mrgrain/cdk-esbuild.AssetProps"></a>
57
+
58
+ #### Initializer <a name="[object Object].Initializer"></a>
59
+
60
+ ```typescript
61
+ import { AssetProps } from '@mrgrain/cdk-esbuild'
62
+
63
+ const assetProps: AssetProps = { ... }
64
+ ```
65
+
66
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.buildOptions"></a>
67
+
68
+ ```typescript
69
+ public readonly buildOptions: BuildOptions;
70
+ ```
71
+
72
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
73
+
74
+ Options passed on to esbuild.
75
+
76
+ ---
77
+
78
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.copyDir"></a>
79
+
80
+ ```typescript
81
+ public readonly copyDir: string;
82
+ ```
83
+
84
+ - *Type:* `string`
85
+
86
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
87
+
88
+ ---
89
+
90
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.assetHash"></a>
91
+
92
+ ```typescript
93
+ public readonly assetHash: string;
94
+ ```
95
+
96
+ - *Type:* `string`
97
+
98
+ A hash of this asset, which is available at construction time.
99
+
100
+ As this is a plain string, it
101
+ can be used in construct IDs in order to enforce creation of a new resource when the content
102
+ hash has changed.
103
+
104
+ ---
105
+
106
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.entryPoints"></a>
107
+
108
+ ```typescript
109
+ public readonly entryPoints: string | string[] | {[ key: string ]: string};
110
+ ```
111
+
112
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
113
+
114
+ Relative paths to the entrypoints of your code, e.g. `src/index.ts`.
115
+
116
+ ---
117
+
118
+ ### BuildOptions <a name="@mrgrain/cdk-esbuild.BuildOptions"></a>
119
+
120
+ #### Initializer <a name="[object Object].Initializer"></a>
121
+
122
+ ```typescript
123
+ import { BuildOptions } from '@mrgrain/cdk-esbuild'
124
+
125
+ const buildOptions: BuildOptions = { ... }
126
+ ```
127
+
128
+ ##### `absWorkingDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.absWorkingDir"></a>
129
+
130
+ ```typescript
131
+ public readonly absWorkingDir: string;
132
+ ```
133
+
134
+ - *Type:* `string`
135
+
136
+ ---
137
+
138
+ ##### `allowOverwrite`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.allowOverwrite"></a>
139
+
140
+ ```typescript
141
+ public readonly allowOverwrite: boolean;
142
+ ```
143
+
144
+ - *Type:* `boolean`
145
+
146
+ ---
147
+
148
+ ##### `assetNames`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.assetNames"></a>
149
+
150
+ ```typescript
151
+ public readonly assetNames: string;
152
+ ```
153
+
154
+ - *Type:* `string`
155
+
156
+ ---
157
+
158
+ ##### `banner`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.banner"></a>
159
+
160
+ ```typescript
161
+ public readonly banner: {[ key: string ]: string};
162
+ ```
163
+
164
+ - *Type:* {[ key: string ]: `string`}
165
+
166
+ ---
167
+
168
+ ##### `bundle`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.bundle"></a>
169
+
170
+ ```typescript
171
+ public readonly bundle: boolean;
172
+ ```
173
+
174
+ - *Type:* `boolean`
175
+
176
+ ---
177
+
178
+ ##### `charset`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.charset"></a>
179
+
180
+ ```typescript
181
+ public readonly charset: string;
182
+ ```
183
+
184
+ - *Type:* `string`
185
+
186
+ ---
187
+
188
+ ##### `chunkNames`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.chunkNames"></a>
189
+
190
+ ```typescript
191
+ public readonly chunkNames: string;
192
+ ```
193
+
194
+ - *Type:* `string`
195
+
196
+ ---
197
+
198
+ ##### `color`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.color"></a>
199
+
200
+ ```typescript
201
+ public readonly color: boolean;
202
+ ```
203
+
204
+ - *Type:* `boolean`
205
+
206
+ ---
207
+
208
+ ##### `conditions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.conditions"></a>
209
+
210
+ ```typescript
211
+ public readonly conditions: string[];
212
+ ```
213
+
214
+ - *Type:* `string`[]
215
+
216
+ ---
217
+
218
+ ##### `define`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.define"></a>
219
+
220
+ ```typescript
221
+ public readonly define: {[ key: string ]: string};
222
+ ```
223
+
224
+ - *Type:* {[ key: string ]: `string`}
225
+
226
+ ---
227
+
228
+ ##### `entryNames`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.entryNames"></a>
229
+
230
+ ```typescript
231
+ public readonly entryNames: string;
232
+ ```
233
+
234
+ - *Type:* `string`
235
+
236
+ ---
237
+
238
+ ##### `external`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.external"></a>
239
+
240
+ ```typescript
241
+ public readonly external: string[];
242
+ ```
243
+
244
+ - *Type:* `string`[]
245
+
246
+ ---
247
+
248
+ ##### `footer`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.footer"></a>
249
+
250
+ ```typescript
251
+ public readonly footer: {[ key: string ]: string};
252
+ ```
253
+
254
+ - *Type:* {[ key: string ]: `string`}
255
+
256
+ ---
257
+
258
+ ##### `format`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.format"></a>
259
+
260
+ ```typescript
261
+ public readonly format: string;
262
+ ```
263
+
264
+ - *Type:* `string`
265
+
266
+ ---
267
+
268
+ ##### `globalName`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.globalName"></a>
269
+
270
+ ```typescript
271
+ public readonly globalName: string;
272
+ ```
273
+
274
+ - *Type:* `string`
275
+
276
+ ---
277
+
278
+ ##### `ignoreAnnotations`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.ignoreAnnotations"></a>
279
+
280
+ ```typescript
281
+ public readonly ignoreAnnotations: boolean;
282
+ ```
283
+
284
+ - *Type:* `boolean`
285
+
286
+ ---
287
+
288
+ ##### `incremental`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.incremental"></a>
289
+
290
+ ```typescript
291
+ public readonly incremental: boolean;
292
+ ```
293
+
294
+ - *Type:* `boolean`
295
+
296
+ ---
297
+
298
+ ##### `inject`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.inject"></a>
299
+
300
+ ```typescript
301
+ public readonly inject: string[];
302
+ ```
303
+
304
+ - *Type:* `string`[]
305
+
306
+ ---
307
+
308
+ ##### `jsx`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.jsx"></a>
309
+
310
+ ```typescript
311
+ public readonly jsx: string;
312
+ ```
313
+
314
+ - *Type:* `string`
315
+
316
+ ---
317
+
318
+ ##### `jsxFactory`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.jsxFactory"></a>
319
+
320
+ ```typescript
321
+ public readonly jsxFactory: string;
322
+ ```
323
+
324
+ - *Type:* `string`
325
+
326
+ ---
327
+
328
+ ##### `jsxFragment`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.jsxFragment"></a>
329
+
330
+ ```typescript
331
+ public readonly jsxFragment: string;
332
+ ```
333
+
334
+ - *Type:* `string`
335
+
336
+ ---
337
+
338
+ ##### `keepNames`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.keepNames"></a>
339
+
340
+ ```typescript
341
+ public readonly keepNames: boolean;
342
+ ```
343
+
344
+ - *Type:* `boolean`
345
+
346
+ ---
347
+
348
+ ##### `legalComments`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.legalComments"></a>
349
+
350
+ ```typescript
351
+ public readonly legalComments: string;
352
+ ```
353
+
354
+ - *Type:* `string`
355
+
356
+ ---
357
+
358
+ ##### `loader`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.loader"></a>
359
+
360
+ ```typescript
361
+ public readonly loader: {[ key: string ]: string};
362
+ ```
363
+
364
+ - *Type:* {[ key: string ]: `string`}
365
+
366
+ ---
367
+
368
+ ##### `logLevel`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.logLevel"></a>
369
+
370
+ ```typescript
371
+ public readonly logLevel: string;
372
+ ```
373
+
374
+ - *Type:* `string`
375
+
376
+ ---
377
+
378
+ ##### `logLimit`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.logLimit"></a>
379
+
380
+ ```typescript
381
+ public readonly logLimit: number;
382
+ ```
383
+
384
+ - *Type:* `number`
385
+
386
+ ---
387
+
388
+ ##### `mainFields`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.mainFields"></a>
389
+
390
+ ```typescript
391
+ public readonly mainFields: string[];
392
+ ```
393
+
394
+ - *Type:* `string`[]
395
+
396
+ ---
397
+
398
+ ##### `metafile`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.metafile"></a>
399
+
400
+ ```typescript
401
+ public readonly metafile: boolean;
402
+ ```
403
+
404
+ - *Type:* `boolean`
405
+
406
+ ---
407
+
408
+ ##### `minify`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.minify"></a>
409
+
410
+ ```typescript
411
+ public readonly minify: boolean;
412
+ ```
413
+
414
+ - *Type:* `boolean`
415
+
416
+ ---
417
+
418
+ ##### `minifyIdentifiers`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.minifyIdentifiers"></a>
419
+
420
+ ```typescript
421
+ public readonly minifyIdentifiers: boolean;
422
+ ```
423
+
424
+ - *Type:* `boolean`
425
+
426
+ ---
427
+
428
+ ##### `minifySyntax`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.minifySyntax"></a>
429
+
430
+ ```typescript
431
+ public readonly minifySyntax: boolean;
432
+ ```
433
+
434
+ - *Type:* `boolean`
435
+
436
+ ---
437
+
438
+ ##### `minifyWhitespace`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.minifyWhitespace"></a>
439
+
440
+ ```typescript
441
+ public readonly minifyWhitespace: boolean;
442
+ ```
443
+
444
+ - *Type:* `boolean`
445
+
446
+ ---
447
+
448
+ ##### `nodePaths`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.nodePaths"></a>
449
+
450
+ ```typescript
451
+ public readonly nodePaths: string[];
452
+ ```
453
+
454
+ - *Type:* `string`[]
455
+
456
+ ---
457
+
458
+ ##### `outbase`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.outbase"></a>
459
+
460
+ ```typescript
461
+ public readonly outbase: string;
462
+ ```
463
+
464
+ - *Type:* `string`
465
+
466
+ ---
467
+
468
+ ##### `outdir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.outdir"></a>
469
+
470
+ ```typescript
471
+ public readonly outdir: string;
472
+ ```
473
+
474
+ - *Type:* `string`
475
+
476
+ ---
477
+
478
+ ##### `outExtension`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.outExtension"></a>
479
+
480
+ ```typescript
481
+ public readonly outExtension: {[ key: string ]: string};
482
+ ```
483
+
484
+ - *Type:* {[ key: string ]: `string`}
485
+
486
+ ---
487
+
488
+ ##### `outfile`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.outfile"></a>
489
+
490
+ ```typescript
491
+ public readonly outfile: string;
492
+ ```
493
+
494
+ - *Type:* `string`
495
+
496
+ ---
497
+
498
+ ##### `platform`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.platform"></a>
499
+
500
+ ```typescript
501
+ public readonly platform: string;
502
+ ```
503
+
504
+ - *Type:* `string`
505
+
506
+ ---
507
+
508
+ ##### `preserveSymlinks`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.preserveSymlinks"></a>
509
+
510
+ ```typescript
511
+ public readonly preserveSymlinks: boolean;
512
+ ```
513
+
514
+ - *Type:* `boolean`
515
+
516
+ ---
517
+
518
+ ##### `publicPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.publicPath"></a>
519
+
520
+ ```typescript
521
+ public readonly publicPath: string;
522
+ ```
523
+
524
+ - *Type:* `string`
525
+
526
+ ---
527
+
528
+ ##### `pure`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.pure"></a>
529
+
530
+ ```typescript
531
+ public readonly pure: string[];
532
+ ```
533
+
534
+ - *Type:* `string`[]
535
+
536
+ ---
537
+
538
+ ##### `resolveExtensions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.resolveExtensions"></a>
539
+
540
+ ```typescript
541
+ public readonly resolveExtensions: string[];
542
+ ```
543
+
544
+ - *Type:* `string`[]
545
+
546
+ ---
547
+
548
+ ##### `sourcemap`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.sourcemap"></a>
549
+
550
+ ```typescript
551
+ public readonly sourcemap: boolean | string;
552
+ ```
553
+
554
+ - *Type:* `boolean` | `string`
555
+
556
+ ---
557
+
558
+ ##### `sourceRoot`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.sourceRoot"></a>
559
+
560
+ ```typescript
561
+ public readonly sourceRoot: string;
562
+ ```
563
+
564
+ - *Type:* `string`
565
+
566
+ ---
567
+
568
+ ##### `sourcesContent`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.sourcesContent"></a>
569
+
570
+ ```typescript
571
+ public readonly sourcesContent: boolean;
572
+ ```
573
+
574
+ - *Type:* `boolean`
575
+
576
+ ---
577
+
578
+ ##### `splitting`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.splitting"></a>
579
+
580
+ ```typescript
581
+ public readonly splitting: boolean;
582
+ ```
583
+
584
+ - *Type:* `boolean`
585
+
586
+ ---
587
+
588
+ ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.target"></a>
589
+
590
+ ```typescript
591
+ public readonly target: string | string[];
592
+ ```
593
+
594
+ - *Type:* `string` | `string`[]
595
+
596
+ ---
597
+
598
+ ##### `treeShaking`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.treeShaking"></a>
599
+
600
+ ```typescript
601
+ public readonly treeShaking: boolean;
602
+ ```
603
+
604
+ - *Type:* `boolean`
605
+
606
+ ---
607
+
608
+ ##### `tsconfig`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.tsconfig"></a>
609
+
610
+ ```typescript
611
+ public readonly tsconfig: string;
612
+ ```
613
+
614
+ - *Type:* `string`
615
+
616
+ ---
617
+
618
+ ##### `write`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.write"></a>
619
+
620
+ ```typescript
621
+ public readonly write: boolean;
622
+ ```
623
+
624
+ - *Type:* `boolean`
625
+
626
+ ---
627
+
628
+ ### BundlerProps <a name="@mrgrain/cdk-esbuild.BundlerProps"></a>
629
+
630
+ #### Initializer <a name="[object Object].Initializer"></a>
631
+
632
+ ```typescript
633
+ import { BundlerProps } from '@mrgrain/cdk-esbuild'
634
+
635
+ const bundlerProps: BundlerProps = { ... }
636
+ ```
637
+
638
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BundlerProps.property.buildOptions"></a>
639
+
640
+ ```typescript
641
+ public readonly buildOptions: BuildOptions;
642
+ ```
643
+
644
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
645
+
646
+ Options passed on to esbuild.
647
+
648
+ ---
649
+
650
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BundlerProps.property.copyDir"></a>
651
+
652
+ ```typescript
653
+ public readonly copyDir: string;
654
+ ```
655
+
656
+ - *Type:* `string`
657
+
658
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
659
+
660
+ ---
661
+
662
+ ### CodeConfig <a name="@mrgrain/cdk-esbuild.CodeConfig"></a>
663
+
664
+ #### Initializer <a name="[object Object].Initializer"></a>
665
+
666
+ ```typescript
667
+ import { CodeConfig } from '@mrgrain/cdk-esbuild'
668
+
669
+ const codeConfig: CodeConfig = { ... }
670
+ ```
671
+
672
+ ##### `s3Location`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.s3Location"></a>
673
+
674
+ ```typescript
675
+ public readonly s3Location: Location;
676
+ ```
677
+
678
+ - *Type:* [`@aws-cdk/aws-s3.Location`](#@aws-cdk/aws-s3.Location)
679
+
680
+ ---
681
+
682
+ ### JavaScriptCodeProps <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps"></a>
683
+
684
+ #### Initializer <a name="[object Object].Initializer"></a>
685
+
686
+ ```typescript
687
+ import { JavaScriptCodeProps } from '@mrgrain/cdk-esbuild'
688
+
689
+ const javaScriptCodeProps: JavaScriptCodeProps = { ... }
690
+ ```
691
+
692
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.buildOptions"></a>
693
+
694
+ ```typescript
695
+ public readonly buildOptions: BuildOptions;
696
+ ```
697
+
698
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
699
+
700
+ Options passed on to esbuild.
701
+
702
+ ---
703
+
704
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.copyDir"></a>
705
+
706
+ ```typescript
707
+ public readonly copyDir: string;
708
+ ```
709
+
710
+ - *Type:* `string`
711
+
712
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
713
+
714
+ ---
715
+
716
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.assetHash"></a>
717
+
718
+ ```typescript
719
+ public readonly assetHash: string;
720
+ ```
721
+
722
+ - *Type:* `string`
723
+
724
+ A hash of this asset, which is available at construction time.
725
+
726
+ As this is a plain string, it
727
+ can be used in construct IDs in order to enforce creation of a new resource when the content
728
+ hash has changed.
729
+
730
+ ---
731
+
732
+ ### JavaScriptSourceProps <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps"></a>
733
+
734
+ #### Initializer <a name="[object Object].Initializer"></a>
735
+
736
+ ```typescript
737
+ import { JavaScriptSourceProps } from '@mrgrain/cdk-esbuild'
738
+
739
+ const javaScriptSourceProps: JavaScriptSourceProps = { ... }
740
+ ```
741
+
742
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.buildOptions"></a>
743
+
744
+ ```typescript
745
+ public readonly buildOptions: BuildOptions;
746
+ ```
747
+
748
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
749
+
750
+ Options passed on to esbuild.
751
+
752
+ ---
753
+
754
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.copyDir"></a>
755
+
756
+ ```typescript
757
+ public readonly copyDir: string;
758
+ ```
759
+
760
+ - *Type:* `string`
761
+
762
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
763
+
764
+ ---
765
+
766
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.assetHash"></a>
767
+
768
+ ```typescript
769
+ public readonly assetHash: string;
770
+ ```
771
+
772
+ - *Type:* `string`
773
+
774
+ A hash of this asset, which is available at construction time.
775
+
776
+ As this is a plain string, it
777
+ can be used in construct IDs in order to enforce creation of a new resource when the content
778
+ hash has changed.
779
+
780
+ ---
781
+
782
+ ### TransformOptions <a name="@mrgrain/cdk-esbuild.TransformOptions"></a>
783
+
784
+ #### Initializer <a name="[object Object].Initializer"></a>
785
+
786
+ ```typescript
787
+ import { TransformOptions } from '@mrgrain/cdk-esbuild'
788
+
789
+ const transformOptions: TransformOptions = { ... }
790
+ ```
791
+
792
+ ##### `banner`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.banner"></a>
793
+
794
+ ```typescript
795
+ public readonly banner: string;
796
+ ```
797
+
798
+ - *Type:* `string`
799
+
800
+ ---
801
+
802
+ ##### `charset`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.charset"></a>
803
+
804
+ ```typescript
805
+ public readonly charset: string;
806
+ ```
807
+
808
+ - *Type:* `string`
809
+
810
+ ---
811
+
812
+ ##### `color`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.color"></a>
813
+
814
+ ```typescript
815
+ public readonly color: boolean;
816
+ ```
817
+
818
+ - *Type:* `boolean`
819
+
820
+ ---
821
+
822
+ ##### `define`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.define"></a>
823
+
824
+ ```typescript
825
+ public readonly define: {[ key: string ]: string};
826
+ ```
827
+
828
+ - *Type:* {[ key: string ]: `string`}
829
+
830
+ ---
831
+
832
+ ##### `footer`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.footer"></a>
833
+
834
+ ```typescript
835
+ public readonly footer: string;
836
+ ```
837
+
838
+ - *Type:* `string`
839
+
840
+ ---
841
+
842
+ ##### `format`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.format"></a>
843
+
844
+ ```typescript
845
+ public readonly format: string;
846
+ ```
847
+
848
+ - *Type:* `string`
849
+
850
+ ---
851
+
852
+ ##### `globalName`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.globalName"></a>
853
+
854
+ ```typescript
855
+ public readonly globalName: string;
856
+ ```
857
+
858
+ - *Type:* `string`
859
+
860
+ ---
861
+
862
+ ##### `ignoreAnnotations`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.ignoreAnnotations"></a>
863
+
864
+ ```typescript
865
+ public readonly ignoreAnnotations: boolean;
866
+ ```
867
+
868
+ - *Type:* `boolean`
869
+
870
+ ---
871
+
872
+ ##### `jsx`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.jsx"></a>
873
+
874
+ ```typescript
875
+ public readonly jsx: string;
876
+ ```
877
+
878
+ - *Type:* `string`
879
+
880
+ ---
881
+
882
+ ##### `jsxFactory`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.jsxFactory"></a>
883
+
884
+ ```typescript
885
+ public readonly jsxFactory: string;
886
+ ```
887
+
888
+ - *Type:* `string`
889
+
890
+ ---
891
+
892
+ ##### `jsxFragment`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.jsxFragment"></a>
893
+
894
+ ```typescript
895
+ public readonly jsxFragment: string;
896
+ ```
897
+
898
+ - *Type:* `string`
899
+
900
+ ---
901
+
902
+ ##### `keepNames`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.keepNames"></a>
903
+
904
+ ```typescript
905
+ public readonly keepNames: boolean;
906
+ ```
907
+
908
+ - *Type:* `boolean`
909
+
910
+ ---
911
+
912
+ ##### `legalComments`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.legalComments"></a>
913
+
914
+ ```typescript
915
+ public readonly legalComments: string;
916
+ ```
917
+
918
+ - *Type:* `string`
919
+
920
+ ---
921
+
922
+ ##### `loader`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.loader"></a>
923
+
924
+ ```typescript
925
+ public readonly loader: string;
926
+ ```
927
+
928
+ - *Type:* `string`
929
+
930
+ ---
931
+
932
+ ##### `logLevel`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.logLevel"></a>
933
+
934
+ ```typescript
935
+ public readonly logLevel: string;
936
+ ```
937
+
938
+ - *Type:* `string`
939
+
940
+ ---
941
+
942
+ ##### `logLimit`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.logLimit"></a>
943
+
944
+ ```typescript
945
+ public readonly logLimit: number;
946
+ ```
947
+
948
+ - *Type:* `number`
949
+
950
+ ---
951
+
952
+ ##### `minify`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.minify"></a>
953
+
954
+ ```typescript
955
+ public readonly minify: boolean;
956
+ ```
957
+
958
+ - *Type:* `boolean`
959
+
960
+ ---
961
+
962
+ ##### `minifyIdentifiers`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.minifyIdentifiers"></a>
963
+
964
+ ```typescript
965
+ public readonly minifyIdentifiers: boolean;
966
+ ```
967
+
968
+ - *Type:* `boolean`
969
+
970
+ ---
971
+
972
+ ##### `minifySyntax`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.minifySyntax"></a>
973
+
974
+ ```typescript
975
+ public readonly minifySyntax: boolean;
976
+ ```
977
+
978
+ - *Type:* `boolean`
979
+
980
+ ---
981
+
982
+ ##### `minifyWhitespace`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.minifyWhitespace"></a>
983
+
984
+ ```typescript
985
+ public readonly minifyWhitespace: boolean;
986
+ ```
987
+
988
+ - *Type:* `boolean`
989
+
990
+ ---
991
+
992
+ ##### `pure`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.pure"></a>
993
+
994
+ ```typescript
995
+ public readonly pure: string[];
996
+ ```
997
+
998
+ - *Type:* `string`[]
999
+
1000
+ ---
1001
+
1002
+ ##### `sourcefile`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.sourcefile"></a>
1003
+
1004
+ ```typescript
1005
+ public readonly sourcefile: string;
1006
+ ```
1007
+
1008
+ - *Type:* `string`
1009
+
1010
+ ---
1011
+
1012
+ ##### `sourcemap`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.sourcemap"></a>
1013
+
1014
+ ```typescript
1015
+ public readonly sourcemap: boolean | string;
1016
+ ```
1017
+
1018
+ - *Type:* `boolean` | `string`
1019
+
1020
+ ---
1021
+
1022
+ ##### `sourceRoot`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.sourceRoot"></a>
1023
+
1024
+ ```typescript
1025
+ public readonly sourceRoot: string;
1026
+ ```
1027
+
1028
+ - *Type:* `string`
1029
+
1030
+ ---
1031
+
1032
+ ##### `sourcesContent`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.sourcesContent"></a>
1033
+
1034
+ ```typescript
1035
+ public readonly sourcesContent: boolean;
1036
+ ```
1037
+
1038
+ - *Type:* `boolean`
1039
+
1040
+ ---
1041
+
1042
+ ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.target"></a>
1043
+
1044
+ ```typescript
1045
+ public readonly target: string | string[];
1046
+ ```
1047
+
1048
+ - *Type:* `string` | `string`[]
1049
+
1050
+ ---
1051
+
1052
+ ##### `treeShaking`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.treeShaking"></a>
1053
+
1054
+ ```typescript
1055
+ public readonly treeShaking: boolean;
1056
+ ```
1057
+
1058
+ - *Type:* `boolean`
1059
+
1060
+ ---
1061
+
1062
+ ##### `tsconfigRaw`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.tsconfigRaw"></a>
1063
+
1064
+ ```typescript
1065
+ public readonly tsconfigRaw: string;
1066
+ ```
1067
+
1068
+ - *Type:* `string`
1069
+
1070
+ ---
1071
+
1072
+ ### TypeScriptCodeProps <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps"></a>
1073
+
1074
+ #### Initializer <a name="[object Object].Initializer"></a>
1075
+
1076
+ ```typescript
1077
+ import { TypeScriptCodeProps } from '@mrgrain/cdk-esbuild'
1078
+
1079
+ const typeScriptCodeProps: TypeScriptCodeProps = { ... }
1080
+ ```
1081
+
1082
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.buildOptions"></a>
1083
+
1084
+ ```typescript
1085
+ public readonly buildOptions: BuildOptions;
1086
+ ```
1087
+
1088
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
1089
+
1090
+ Options passed on to esbuild.
1091
+
1092
+ ---
1093
+
1094
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.copyDir"></a>
1095
+
1096
+ ```typescript
1097
+ public readonly copyDir: string;
1098
+ ```
1099
+
1100
+ - *Type:* `string`
1101
+
1102
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
1103
+
1104
+ ---
1105
+
1106
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.assetHash"></a>
1107
+
1108
+ ```typescript
1109
+ public readonly assetHash: string;
1110
+ ```
1111
+
1112
+ - *Type:* `string`
1113
+
1114
+ A hash of this asset, which is available at construction time.
1115
+
1116
+ As this is a plain string, it
1117
+ can be used in construct IDs in order to enforce creation of a new resource when the content
1118
+ hash has changed.
1119
+
1120
+ ---
1121
+
1122
+ ### TypeScriptSourceProps <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps"></a>
1123
+
1124
+ #### Initializer <a name="[object Object].Initializer"></a>
1125
+
1126
+ ```typescript
1127
+ import { TypeScriptSourceProps } from '@mrgrain/cdk-esbuild'
1128
+
1129
+ const typeScriptSourceProps: TypeScriptSourceProps = { ... }
1130
+ ```
1131
+
1132
+ ##### `buildOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.buildOptions"></a>
1133
+
1134
+ ```typescript
1135
+ public readonly buildOptions: BuildOptions;
1136
+ ```
1137
+
1138
+ - *Type:* [`@mrgrain/cdk-esbuild.BuildOptions`](#@mrgrain/cdk-esbuild.BuildOptions)
1139
+
1140
+ Options passed on to esbuild.
1141
+
1142
+ ---
1143
+
1144
+ ##### `copyDir`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.copyDir"></a>
1145
+
1146
+ ```typescript
1147
+ public readonly copyDir: string;
1148
+ ```
1149
+
1150
+ - *Type:* `string`
1151
+
1152
+ Relative path to a directory copied to the output BEFORE esbuild is run (i.e esbuild will overwrite existing files).
1153
+
1154
+ ---
1155
+
1156
+ ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.assetHash"></a>
1157
+
1158
+ ```typescript
1159
+ public readonly assetHash: string;
1160
+ ```
1161
+
1162
+ - *Type:* `string`
1163
+
1164
+ A hash of this asset, which is available at construction time.
1165
+
1166
+ As this is a plain string, it
1167
+ can be used in construct IDs in order to enforce creation of a new resource when the content
1168
+ hash has changed.
1169
+
1170
+ ---
1171
+
1172
+ ## Classes <a name="Classes"></a>
1173
+
1174
+ ### EsbuildBundler <a name="@mrgrain/cdk-esbuild.EsbuildBundler"></a>
1175
+
1176
+ #### Initializers <a name="@mrgrain/cdk-esbuild.EsbuildBundler.Initializer"></a>
1177
+
1178
+ ```typescript
1179
+ import { EsbuildBundler } from '@mrgrain/cdk-esbuild'
1180
+
1181
+ new EsbuildBundler(entryPoints: string | string[] | {[ key: string ]: string}, props: BundlerProps)
1182
+ ```
1183
+
1184
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.parameter.entryPoints"></a>
1185
+
1186
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1187
+
1188
+ Relative paths to the entrypoints of your code, e.g. `src/index.ts`.
1189
+
1190
+ ---
1191
+
1192
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.parameter.props"></a>
1193
+
1194
+ - *Type:* [`@mrgrain/cdk-esbuild.BundlerProps`](#@mrgrain/cdk-esbuild.BundlerProps)
1195
+
1196
+ ---
1197
+
1198
+
1199
+
1200
+ #### Properties <a name="Properties"></a>
1201
+
1202
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.property.entryPoints"></a>
1203
+
1204
+ ```typescript
1205
+ public readonly entryPoints: string | string[] | {[ key: string ]: string};
1206
+ ```
1207
+
1208
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1209
+
1210
+ Relative paths to the entrypoints of your code, e.g. `src/index.ts`.
1211
+
1212
+ ---
1213
+
1214
+ ##### `image`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.property.image"></a>
1215
+
1216
+ ```typescript
1217
+ public readonly image: DockerImage;
1218
+ ```
1219
+
1220
+ - *Type:* [`@aws-cdk/core.DockerImage`](#@aws-cdk/core.DockerImage)
1221
+
1222
+ ---
1223
+
1224
+ ##### `local`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.property.local"></a>
1225
+
1226
+ ```typescript
1227
+ public readonly local: ILocalBundling;
1228
+ ```
1229
+
1230
+ - *Type:* [`@aws-cdk/core.ILocalBundling`](#@aws-cdk/core.ILocalBundling)
1231
+
1232
+ ---
1233
+
1234
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildBundler.property.props"></a>
1235
+
1236
+ ```typescript
1237
+ public readonly props: BundlerProps;
1238
+ ```
1239
+
1240
+ - *Type:* [`@mrgrain/cdk-esbuild.BundlerProps`](#@mrgrain/cdk-esbuild.BundlerProps)
1241
+
1242
+ ---
1243
+
1244
+
1245
+ ### InlineJavaScriptCode <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode"></a>
1246
+
1247
+ #### Initializers <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode.Initializer"></a>
1248
+
1249
+ ```typescript
1250
+ import { InlineJavaScriptCode } from '@mrgrain/cdk-esbuild'
1251
+
1252
+ new InlineJavaScriptCode(code: string, transformOptions?: TransformOptions)
1253
+ ```
1254
+
1255
+ ##### `code`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode.parameter.code"></a>
1256
+
1257
+ - *Type:* `string`
1258
+
1259
+ ---
1260
+
1261
+ ##### `transformOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode.parameter.transformOptions"></a>
1262
+
1263
+ - *Type:* [`@mrgrain/cdk-esbuild.TransformOptions`](#@mrgrain/cdk-esbuild.TransformOptions)
1264
+
1265
+ ---
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+ ### InlineJsxCode <a name="@mrgrain/cdk-esbuild.InlineJsxCode"></a>
1272
+
1273
+ #### Initializers <a name="@mrgrain/cdk-esbuild.InlineJsxCode.Initializer"></a>
1274
+
1275
+ ```typescript
1276
+ import { InlineJsxCode } from '@mrgrain/cdk-esbuild'
1277
+
1278
+ new InlineJsxCode(code: string, transformOptions?: TransformOptions)
1279
+ ```
1280
+
1281
+ ##### `code`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.InlineJsxCode.parameter.code"></a>
1282
+
1283
+ - *Type:* `string`
1284
+
1285
+ ---
1286
+
1287
+ ##### `transformOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.InlineJsxCode.parameter.transformOptions"></a>
1288
+
1289
+ - *Type:* [`@mrgrain/cdk-esbuild.TransformOptions`](#@mrgrain/cdk-esbuild.TransformOptions)
1290
+
1291
+ ---
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+ ### InlineTsxCode <a name="@mrgrain/cdk-esbuild.InlineTsxCode"></a>
1298
+
1299
+ #### Initializers <a name="@mrgrain/cdk-esbuild.InlineTsxCode.Initializer"></a>
1300
+
1301
+ ```typescript
1302
+ import { InlineTsxCode } from '@mrgrain/cdk-esbuild'
1303
+
1304
+ new InlineTsxCode(code: string, transformOptions?: TransformOptions)
1305
+ ```
1306
+
1307
+ ##### `code`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.InlineTsxCode.parameter.code"></a>
1308
+
1309
+ - *Type:* `string`
1310
+
1311
+ ---
1312
+
1313
+ ##### `transformOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.InlineTsxCode.parameter.transformOptions"></a>
1314
+
1315
+ - *Type:* [`@mrgrain/cdk-esbuild.TransformOptions`](#@mrgrain/cdk-esbuild.TransformOptions)
1316
+
1317
+ ---
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+ ### InlineTypeScriptCode <a name="@mrgrain/cdk-esbuild.InlineTypeScriptCode"></a>
1324
+
1325
+ #### Initializers <a name="@mrgrain/cdk-esbuild.InlineTypeScriptCode.Initializer"></a>
1326
+
1327
+ ```typescript
1328
+ import { InlineTypeScriptCode } from '@mrgrain/cdk-esbuild'
1329
+
1330
+ new InlineTypeScriptCode(code: string, transformOptions?: TransformOptions)
1331
+ ```
1332
+
1333
+ ##### `code`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.InlineTypeScriptCode.parameter.code"></a>
1334
+
1335
+ - *Type:* `string`
1336
+
1337
+ ---
1338
+
1339
+ ##### `transformOptions`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.InlineTypeScriptCode.parameter.transformOptions"></a>
1340
+
1341
+ - *Type:* [`@mrgrain/cdk-esbuild.TransformOptions`](#@mrgrain/cdk-esbuild.TransformOptions)
1342
+
1343
+ ---
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+ ### JavaScriptAsset <a name="@mrgrain/cdk-esbuild.JavaScriptAsset"></a>
1350
+
1351
+ #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.Initializer"></a>
1352
+
1353
+ ```typescript
1354
+ import { JavaScriptAsset } from '@mrgrain/cdk-esbuild'
1355
+
1356
+ new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)
1357
+ ```
1358
+
1359
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>
1360
+
1361
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1362
+
1363
+ ---
1364
+
1365
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.id"></a>
1366
+
1367
+ - *Type:* `string`
1368
+
1369
+ ---
1370
+
1371
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.props"></a>
1372
+
1373
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
1374
+
1375
+ ---
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+ ### JavaScriptCode <a name="@mrgrain/cdk-esbuild.JavaScriptCode"></a>
1382
+
1383
+ #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptCode.Initializer"></a>
1384
+
1385
+ ```typescript
1386
+ import { JavaScriptCode } from '@mrgrain/cdk-esbuild'
1387
+
1388
+ new JavaScriptCode(entryPoints: string | string[] | {[ key: string ]: string}, props?: JavaScriptCodeProps)
1389
+ ```
1390
+
1391
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.entryPoints"></a>
1392
+
1393
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1394
+
1395
+ ---
1396
+
1397
+ ##### `props`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.props"></a>
1398
+
1399
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptCodeProps`](#@mrgrain/cdk-esbuild.JavaScriptCodeProps)
1400
+
1401
+ ---
1402
+
1403
+ #### Methods <a name="Methods"></a>
1404
+
1405
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bind"></a>
1406
+
1407
+ ```typescript
1408
+ public bind(scope: Construct)
1409
+ ```
1410
+
1411
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.scope"></a>
1412
+
1413
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1414
+
1415
+ ---
1416
+
1417
+ ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bindToResource"></a>
1418
+
1419
+ ```typescript
1420
+ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
1421
+ ```
1422
+
1423
+ ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.resource"></a>
1424
+
1425
+ - *Type:* [`@aws-cdk/core.CfnResource`](#@aws-cdk/core.CfnResource)
1426
+
1427
+ ---
1428
+
1429
+ ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.options"></a>
1430
+
1431
+ - *Type:* [`@aws-cdk/aws-lambda.ResourceBindOptions`](#@aws-cdk/aws-lambda.ResourceBindOptions)
1432
+
1433
+ ---
1434
+
1435
+
1436
+ #### Properties <a name="Properties"></a>
1437
+
1438
+ ##### `assetClass`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.property.assetClass"></a>
1439
+
1440
+ ```typescript
1441
+ public readonly assetClass: JavaScriptAsset;
1442
+ ```
1443
+
1444
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptAsset`](#@mrgrain/cdk-esbuild.JavaScriptAsset)
1445
+
1446
+ ---
1447
+
1448
+ ##### `isInline`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.property.isInline"></a>
1449
+
1450
+ ```typescript
1451
+ public readonly isInline: boolean;
1452
+ ```
1453
+
1454
+ - *Type:* `boolean`
1455
+
1456
+ ---
1457
+
1458
+
1459
+ ### JavaScriptSource <a name="@mrgrain/cdk-esbuild.JavaScriptSource"></a>
1460
+
1461
+ - *Implements:* [`@aws-cdk/aws-s3-deployment.ISource`](#@aws-cdk/aws-s3-deployment.ISource)
1462
+
1463
+ #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptSource.Initializer"></a>
1464
+
1465
+ ```typescript
1466
+ import { JavaScriptSource } from '@mrgrain/cdk-esbuild'
1467
+
1468
+ new JavaScriptSource(entryPoints: string | string[] | {[ key: string ]: string}, props?: JavaScriptSourceProps)
1469
+ ```
1470
+
1471
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.entryPoints"></a>
1472
+
1473
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1474
+
1475
+ ---
1476
+
1477
+ ##### `props`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.props"></a>
1478
+
1479
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptSourceProps`](#@mrgrain/cdk-esbuild.JavaScriptSourceProps)
1480
+
1481
+ ---
1482
+
1483
+ #### Methods <a name="Methods"></a>
1484
+
1485
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.JavaScriptSource.bind"></a>
1486
+
1487
+ ```typescript
1488
+ public bind(scope: Construct, context?: DeploymentSourceContext)
1489
+ ```
1490
+
1491
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.scope"></a>
1492
+
1493
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1494
+
1495
+ ---
1496
+
1497
+ ###### `context`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.context"></a>
1498
+
1499
+ - *Type:* [`@aws-cdk/aws-s3-deployment.DeploymentSourceContext`](#@aws-cdk/aws-s3-deployment.DeploymentSourceContext)
1500
+
1501
+ ---
1502
+
1503
+
1504
+ #### Properties <a name="Properties"></a>
1505
+
1506
+ ##### `assetClass`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.property.assetClass"></a>
1507
+
1508
+ ```typescript
1509
+ public readonly assetClass: JavaScriptAsset;
1510
+ ```
1511
+
1512
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptAsset`](#@mrgrain/cdk-esbuild.JavaScriptAsset)
1513
+
1514
+ ---
1515
+
1516
+
1517
+ ### TypeScriptAsset <a name="@mrgrain/cdk-esbuild.TypeScriptAsset"></a>
1518
+
1519
+ #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.Initializer"></a>
1520
+
1521
+ ```typescript
1522
+ import { TypeScriptAsset } from '@mrgrain/cdk-esbuild'
1523
+
1524
+ new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)
1525
+ ```
1526
+
1527
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>
1528
+
1529
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1530
+
1531
+ ---
1532
+
1533
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.id"></a>
1534
+
1535
+ - *Type:* `string`
1536
+
1537
+ ---
1538
+
1539
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.props"></a>
1540
+
1541
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
1542
+
1543
+ ---
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ ### TypeScriptCode <a name="@mrgrain/cdk-esbuild.TypeScriptCode"></a>
1550
+
1551
+ #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptCode.Initializer"></a>
1552
+
1553
+ ```typescript
1554
+ import { TypeScriptCode } from '@mrgrain/cdk-esbuild'
1555
+
1556
+ new TypeScriptCode(entryPoints: string | string[] | {[ key: string ]: string}, props?: TypeScriptCodeProps)
1557
+ ```
1558
+
1559
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.entryPoints"></a>
1560
+
1561
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1562
+
1563
+ ---
1564
+
1565
+ ##### `props`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.props"></a>
1566
+
1567
+ - *Type:* [`@mrgrain/cdk-esbuild.TypeScriptCodeProps`](#@mrgrain/cdk-esbuild.TypeScriptCodeProps)
1568
+
1569
+ ---
1570
+
1571
+ #### Methods <a name="Methods"></a>
1572
+
1573
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bind"></a>
1574
+
1575
+ ```typescript
1576
+ public bind(scope: Construct)
1577
+ ```
1578
+
1579
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.scope"></a>
1580
+
1581
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1582
+
1583
+ ---
1584
+
1585
+ ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bindToResource"></a>
1586
+
1587
+ ```typescript
1588
+ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
1589
+ ```
1590
+
1591
+ ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.resource"></a>
1592
+
1593
+ - *Type:* [`@aws-cdk/core.CfnResource`](#@aws-cdk/core.CfnResource)
1594
+
1595
+ ---
1596
+
1597
+ ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.options"></a>
1598
+
1599
+ - *Type:* [`@aws-cdk/aws-lambda.ResourceBindOptions`](#@aws-cdk/aws-lambda.ResourceBindOptions)
1600
+
1601
+ ---
1602
+
1603
+
1604
+ #### Properties <a name="Properties"></a>
1605
+
1606
+ ##### `assetClass`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.property.assetClass"></a>
1607
+
1608
+ ```typescript
1609
+ public readonly assetClass: TypeScriptAsset;
1610
+ ```
1611
+
1612
+ - *Type:* [`@mrgrain/cdk-esbuild.TypeScriptAsset`](#@mrgrain/cdk-esbuild.TypeScriptAsset)
1613
+
1614
+ ---
1615
+
1616
+ ##### `isInline`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.property.isInline"></a>
1617
+
1618
+ ```typescript
1619
+ public readonly isInline: boolean;
1620
+ ```
1621
+
1622
+ - *Type:* `boolean`
1623
+
1624
+ ---
1625
+
1626
+
1627
+ ### TypeScriptSource <a name="@mrgrain/cdk-esbuild.TypeScriptSource"></a>
1628
+
1629
+ - *Implements:* [`@aws-cdk/aws-s3-deployment.ISource`](#@aws-cdk/aws-s3-deployment.ISource)
1630
+
1631
+ #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptSource.Initializer"></a>
1632
+
1633
+ ```typescript
1634
+ import { TypeScriptSource } from '@mrgrain/cdk-esbuild'
1635
+
1636
+ new TypeScriptSource(entryPoints: string | string[] | {[ key: string ]: string}, props?: TypeScriptSourceProps)
1637
+ ```
1638
+
1639
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.entryPoints"></a>
1640
+
1641
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
1642
+
1643
+ ---
1644
+
1645
+ ##### `props`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.props"></a>
1646
+
1647
+ - *Type:* [`@mrgrain/cdk-esbuild.TypeScriptSourceProps`](#@mrgrain/cdk-esbuild.TypeScriptSourceProps)
1648
+
1649
+ ---
1650
+
1651
+ #### Methods <a name="Methods"></a>
1652
+
1653
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.TypeScriptSource.bind"></a>
1654
+
1655
+ ```typescript
1656
+ public bind(scope: Construct, context?: DeploymentSourceContext)
1657
+ ```
1658
+
1659
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.scope"></a>
1660
+
1661
+ - *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
1662
+
1663
+ ---
1664
+
1665
+ ###### `context`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.context"></a>
1666
+
1667
+ - *Type:* [`@aws-cdk/aws-s3-deployment.DeploymentSourceContext`](#@aws-cdk/aws-s3-deployment.DeploymentSourceContext)
1668
+
1669
+ ---
1670
+
1671
+
1672
+ #### Properties <a name="Properties"></a>
1673
+
1674
+ ##### `assetClass`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.property.assetClass"></a>
1675
+
1676
+ ```typescript
1677
+ public readonly assetClass: TypeScriptAsset;
1678
+ ```
1679
+
1680
+ - *Type:* [`@mrgrain/cdk-esbuild.TypeScriptAsset`](#@mrgrain/cdk-esbuild.TypeScriptAsset)
1681
+
1682
+ ---
1683
+
1684
+
1685
+