@mrgrain/cdk-esbuild 4.0.0-alpha.8 → 4.0.0-beta.1
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/.jsii +1297 -357
- package/CHANGELOG.md +94 -0
- package/LICENSE +1 -1
- package/README.md +249 -112
- package/lib/asset.d.ts +12 -1
- package/lib/asset.js +21 -13
- package/lib/bundler.d.ts +51 -28
- package/lib/bundler.js +28 -17
- package/lib/code.d.ts +48 -8
- package/lib/code.js +42 -19
- package/lib/esbuild-types.d.ts +43 -15
- package/lib/esbuild-types.js +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js +6 -5
- package/lib/inline-code.d.ts +29 -77
- package/lib/inline-code.js +53 -104
- package/lib/private/dynamic-package.d.ts +41 -0
- package/lib/private/dynamic-package.js +115 -0
- package/lib/private/esbuild-source.d.ts +33 -0
- package/lib/private/esbuild-source.js +59 -0
- package/lib/private/utils.d.ts +7 -0
- package/lib/private/utils.js +23 -0
- package/lib/provider.d.ts +129 -0
- package/lib/provider.js +115 -0
- package/lib/source.d.ts +81 -5
- package/lib/source.js +84 -8
- package/package.json +32 -18
- package/.gitattributes +0 -24
- package/.projenrc.ts +0 -214
- package/API.md +0 -2514
- package/SECURITY.md +0 -19
- package/lib/esbuild-polyfill.js +0 -2300
- package/lib/esbuild-wrapper.d.ts +0 -3
- package/lib/esbuild-wrapper.js +0 -25
- package/lib/formatMessages.d.ts +0 -18
- package/lib/formatMessages.js +0 -34
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://moritzkornher.de"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.12.0",
|
|
12
12
|
"constructs": "^10.0.5"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -105,6 +105,19 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
+
"aws-cdk-lib.aws_amplifyuibuilder": {
|
|
109
|
+
"targets": {
|
|
110
|
+
"dotnet": {
|
|
111
|
+
"namespace": "Amazon.CDK.AWS.AmplifyUIBuilder"
|
|
112
|
+
},
|
|
113
|
+
"java": {
|
|
114
|
+
"package": "software.amazon.awscdk.services.amplifyuibuilder"
|
|
115
|
+
},
|
|
116
|
+
"python": {
|
|
117
|
+
"module": "aws_cdk.aws_amplifyuibuilder"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
108
121
|
"aws-cdk-lib.aws_apigateway": {
|
|
109
122
|
"targets": {
|
|
110
123
|
"dotnet": {
|
|
@@ -1120,6 +1133,19 @@
|
|
|
1120
1133
|
}
|
|
1121
1134
|
}
|
|
1122
1135
|
},
|
|
1136
|
+
"aws-cdk-lib.aws_evidently": {
|
|
1137
|
+
"targets": {
|
|
1138
|
+
"dotnet": {
|
|
1139
|
+
"namespace": "Amazon.CDK.AWS.Evidently"
|
|
1140
|
+
},
|
|
1141
|
+
"java": {
|
|
1142
|
+
"package": "software.amazon.awscdk.services.evidently"
|
|
1143
|
+
},
|
|
1144
|
+
"python": {
|
|
1145
|
+
"module": "aws_cdk.aws_evidently"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1123
1149
|
"aws-cdk-lib.aws_finspace": {
|
|
1124
1150
|
"targets": {
|
|
1125
1151
|
"dotnet": {
|
|
@@ -1159,6 +1185,19 @@
|
|
|
1159
1185
|
}
|
|
1160
1186
|
}
|
|
1161
1187
|
},
|
|
1188
|
+
"aws-cdk-lib.aws_forecast": {
|
|
1189
|
+
"targets": {
|
|
1190
|
+
"dotnet": {
|
|
1191
|
+
"namespace": "Amazon.CDK.AWS.Forecast"
|
|
1192
|
+
},
|
|
1193
|
+
"java": {
|
|
1194
|
+
"package": "software.amazon.awscdk.services.forecast"
|
|
1195
|
+
},
|
|
1196
|
+
"python": {
|
|
1197
|
+
"module": "aws_cdk.aws_forecast"
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1162
1201
|
"aws-cdk-lib.aws_frauddetector": {
|
|
1163
1202
|
"targets": {
|
|
1164
1203
|
"dotnet": {
|
|
@@ -1341,6 +1380,19 @@
|
|
|
1341
1380
|
}
|
|
1342
1381
|
}
|
|
1343
1382
|
},
|
|
1383
|
+
"aws-cdk-lib.aws_inspectorv2": {
|
|
1384
|
+
"targets": {
|
|
1385
|
+
"dotnet": {
|
|
1386
|
+
"namespace": "Amazon.CDK.AWS.InspectorV2"
|
|
1387
|
+
},
|
|
1388
|
+
"java": {
|
|
1389
|
+
"package": "software.amazon.awscdk.services.inspectorv2"
|
|
1390
|
+
},
|
|
1391
|
+
"python": {
|
|
1392
|
+
"module": "aws_cdk.aws_inspectorv2"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1344
1396
|
"aws-cdk-lib.aws_iot": {
|
|
1345
1397
|
"targets": {
|
|
1346
1398
|
"dotnet": {
|
|
@@ -1471,6 +1523,19 @@
|
|
|
1471
1523
|
}
|
|
1472
1524
|
}
|
|
1473
1525
|
},
|
|
1526
|
+
"aws-cdk-lib.aws_kafkaconnect": {
|
|
1527
|
+
"targets": {
|
|
1528
|
+
"dotnet": {
|
|
1529
|
+
"namespace": "Amazon.CDK.AWS.KafkaConnect"
|
|
1530
|
+
},
|
|
1531
|
+
"java": {
|
|
1532
|
+
"package": "software.amazon.awscdk.services.kafkaconnect"
|
|
1533
|
+
},
|
|
1534
|
+
"python": {
|
|
1535
|
+
"module": "aws_cdk.aws_kafkaconnect"
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1474
1539
|
"aws-cdk-lib.aws_kendra": {
|
|
1475
1540
|
"targets": {
|
|
1476
1541
|
"dotnet": {
|
|
@@ -1510,6 +1575,19 @@
|
|
|
1510
1575
|
}
|
|
1511
1576
|
}
|
|
1512
1577
|
},
|
|
1578
|
+
"aws-cdk-lib.aws_kinesisanalyticsv2": {
|
|
1579
|
+
"targets": {
|
|
1580
|
+
"dotnet": {
|
|
1581
|
+
"namespace": "Amazon.CDK.AWS.KinesisAnalyticsV2"
|
|
1582
|
+
},
|
|
1583
|
+
"java": {
|
|
1584
|
+
"package": "software.amazon.awscdk.services.kinesisanalyticsv2"
|
|
1585
|
+
},
|
|
1586
|
+
"python": {
|
|
1587
|
+
"module": "aws_cdk.aws_kinesisanalyticsv2"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
},
|
|
1513
1591
|
"aws-cdk-lib.aws_kinesisfirehose": {
|
|
1514
1592
|
"targets": {
|
|
1515
1593
|
"dotnet": {
|
|
@@ -1523,6 +1601,19 @@
|
|
|
1523
1601
|
}
|
|
1524
1602
|
}
|
|
1525
1603
|
},
|
|
1604
|
+
"aws-cdk-lib.aws_kinesisvideo": {
|
|
1605
|
+
"targets": {
|
|
1606
|
+
"dotnet": {
|
|
1607
|
+
"namespace": "Amazon.CDK.AWS.KinesisVideo"
|
|
1608
|
+
},
|
|
1609
|
+
"java": {
|
|
1610
|
+
"package": "software.amazon.awscdk.services.kinesisvideo"
|
|
1611
|
+
},
|
|
1612
|
+
"python": {
|
|
1613
|
+
"module": "aws_cdk.aws_kinesisvideo"
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1526
1617
|
"aws-cdk-lib.aws_kms": {
|
|
1527
1618
|
"targets": {
|
|
1528
1619
|
"dotnet": {
|
|
@@ -1601,6 +1692,19 @@
|
|
|
1601
1692
|
}
|
|
1602
1693
|
}
|
|
1603
1694
|
},
|
|
1695
|
+
"aws-cdk-lib.aws_lex": {
|
|
1696
|
+
"targets": {
|
|
1697
|
+
"dotnet": {
|
|
1698
|
+
"namespace": "Amazon.CDK.AWS.Lex"
|
|
1699
|
+
},
|
|
1700
|
+
"java": {
|
|
1701
|
+
"package": "software.amazon.awscdk.services.lex"
|
|
1702
|
+
},
|
|
1703
|
+
"python": {
|
|
1704
|
+
"module": "aws_cdk.aws_lex"
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1604
1708
|
"aws-cdk-lib.aws_licensemanager": {
|
|
1605
1709
|
"targets": {
|
|
1606
1710
|
"dotnet": {
|
|
@@ -2030,6 +2134,19 @@
|
|
|
2030
2134
|
}
|
|
2031
2135
|
}
|
|
2032
2136
|
},
|
|
2137
|
+
"aws-cdk-lib.aws_refactorspaces": {
|
|
2138
|
+
"targets": {
|
|
2139
|
+
"dotnet": {
|
|
2140
|
+
"namespace": "Amazon.CDK.AWS.RefactorSpaces"
|
|
2141
|
+
},
|
|
2142
|
+
"java": {
|
|
2143
|
+
"package": "software.amazon.awscdk.services.refactorspaces"
|
|
2144
|
+
},
|
|
2145
|
+
"python": {
|
|
2146
|
+
"module": "aws_cdk.aws_refactorspaces"
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2033
2150
|
"aws-cdk-lib.aws_rekognition": {
|
|
2034
2151
|
"targets": {
|
|
2035
2152
|
"dotnet": {
|
|
@@ -2043,6 +2160,19 @@
|
|
|
2043
2160
|
}
|
|
2044
2161
|
}
|
|
2045
2162
|
},
|
|
2163
|
+
"aws-cdk-lib.aws_resiliencehub": {
|
|
2164
|
+
"targets": {
|
|
2165
|
+
"dotnet": {
|
|
2166
|
+
"namespace": "Amazon.CDK.AWS.ResilienceHub"
|
|
2167
|
+
},
|
|
2168
|
+
"java": {
|
|
2169
|
+
"package": "software.amazon.awscdk.services.resiliencehub"
|
|
2170
|
+
},
|
|
2171
|
+
"python": {
|
|
2172
|
+
"module": "aws_cdk.aws_resiliencehub"
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2046
2176
|
"aws-cdk-lib.aws_resourcegroups": {
|
|
2047
2177
|
"targets": {
|
|
2048
2178
|
"dotnet": {
|
|
@@ -2147,6 +2277,19 @@
|
|
|
2147
2277
|
}
|
|
2148
2278
|
}
|
|
2149
2279
|
},
|
|
2280
|
+
"aws-cdk-lib.aws_rum": {
|
|
2281
|
+
"targets": {
|
|
2282
|
+
"dotnet": {
|
|
2283
|
+
"namespace": "Amazon.CDK.AWS.RUM"
|
|
2284
|
+
},
|
|
2285
|
+
"java": {
|
|
2286
|
+
"package": "software.amazon.awscdk.services.rum"
|
|
2287
|
+
},
|
|
2288
|
+
"python": {
|
|
2289
|
+
"module": "aws_cdk.aws_rum"
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2150
2293
|
"aws-cdk-lib.aws_s3": {
|
|
2151
2294
|
"targets": {
|
|
2152
2295
|
"dotnet": {
|
|
@@ -2777,7 +2920,7 @@
|
|
|
2777
2920
|
"stability": "stable"
|
|
2778
2921
|
},
|
|
2779
2922
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2780
|
-
"jsiiVersion": "1.
|
|
2923
|
+
"jsiiVersion": "1.73.0 (build 6faeda3)",
|
|
2781
2924
|
"keywords": [
|
|
2782
2925
|
"aws-cdk",
|
|
2783
2926
|
"bundler",
|
|
@@ -2800,7 +2943,7 @@
|
|
|
2800
2943
|
},
|
|
2801
2944
|
"name": "@mrgrain/cdk-esbuild",
|
|
2802
2945
|
"readme": {
|
|
2803
|
-
"markdown": "# cdk-esbuild\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started)\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning) | [Upgrading from AWS CDK v1](#upgrading-from-aws-cdk-v1)\n\n[](https://constructs.dev/packages/@mrgrain/cdk-esbuild)\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for Typescript and JavaScript.\nThis package makes _esbuild_ available to deploy lambda functions, static websites or to publish build artefacts (assets) for further use.\n\nAWS CDK [supports _esbuild_ with Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html). However the implementation cannot be used with any other Constructs and doesn't expose all of _esbuild_'s build interface.\n\nThis package is running _esbuild_ directly in Node.js and bypasses Docker which the AWS CDK implementation uses. The approach is quicker and easier to use for Node.js users, but incompatible with other languages.\n\n**Production readiness**\n\nThis package is stable and ready to be used in production, as many do. However _esbuild_ has not yet released a version 1.0.0 and its API is still in active development. Please read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNotably upgrades of the _esbuild_ minimum version requirement will be introduced in **minor versions** of this package and will inherit breaking changes from _esbuild_.\n\n## Getting started\n\nInstall `cdk-esbuild`:\n\n```\nnpm install @mrgrain/cdk-esbuild@3\n```\n\nIf _peer_ or _optional dependencies_ are not installed automatically (e.g. when using npm v4-6), please use this command to install all of them:\n\n```\nnpm install @mrgrain/cdk-esbuild@3 esbuild\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda Function](examples/lambda) for a complete working example of a how to deploy a lambda function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nimport * as lambda from \"aws-cdk-lib/aws-lambda\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_16_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [Static Website with React](examples/website) for a complete working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nimport * as s3 from \"aws-cdk-lib/aws-s3\";\nimport * as s3deploy from \"aws-cdk-lib/aws-s3-deployment\";\nimport { TypeScriptSource } from \"@mrgrain/cdk-esbuild\";\n\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website](examples/website) for a complete working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on the `@aws-cdk/aws-synthetics-alpha` package which is a developer preview. You may need to update your source code when upgrading to a newer version of this package.\n>\n> ```\n> npm i @aws-cdk/aws-synthetics-alpha\n> ```\n\n```ts\nimport * as synthetics from \"@aws-cdk/aws-synthetics-alpha\";\nimport { TypeScriptCode } from \"@mrgrain/cdk-esbuild\";\n\nconst bundledCode = new TypeScriptCode(\"src/index.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n });\n});\n```\n\n## Documentation\n\nThe package exports various different constructs for use with existing CDK features. A major guiding design principal for this package is to _extend, don't replace_. Expect constructs that you can provide as props, not complete replacements.\n\nFor use in **Lambda Functions** and **Synthetic Canaries**, the following classes implement `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode` & `JavaScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode` & `InlineJavaScriptCode`\n- `InlineTsxCode` & `InlineJsxCode`\n\nFor use with **S3 bucket deployments**, classes implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource` & `JavaScriptSource`\n\n> _Code and Source constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` & `JavaScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n### [API Reference](API.md)\n\nAuto-generated reference for classes and structs. This information is also available as part of your IDE's code completion.\n\n### Escape hatches\n\nIt's possible that you want to use an implementation of esbuild that's different to the default one. Common reasons are:\n\n- The current version constraints for esbuild are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n- Plugin support is needed for building\n\nFor these situations, this package offers an escape hatch to bypass regular the implementation and provide a custom build and transform function.\n\n#### Esbuild binary path\n\nIt is possible to override the binary used by esbuild. The usual way to do this is to set the `ESBUILD_BINARY_PATH` environment variable. For convenience this package allows to set the binary path as a prop:\n\n```ts\nnew TypeScriptCode(\"fixtures/handlers/ts-handler.ts\", {\n esbuildBinaryPath: \"path/to/esbuild/binary\"\n});\n```\n\n#### Custom build function\n\n> 💡 See [Using esbuild with plugins](examples/esbuild-with-plugins) for a complete working example of a custom build function using this escape hatch.\n\nConstructs that result in starting a build, take a `buildFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `buildSync` function.\n\n```ts\nnew TypeScriptCode(\"fixtures/handlers/ts-handler.ts\", {\n buildFn: (options: BuildOptions): BuildResult => {\n try {\n // custom implementation returning BuildResult\n } catch (error) {\n // throw BuildFailure exception here\n }\n },\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated build options. The custom build function can amend, change or discard any of these. However integration with CDK relies heavily on the values `outdir`/`outfile` are set to and it's usually required to use them unchanged.\n\nFailures have to cause a `BuildFailure` exception in order to be fully handled.\n\n#### Custom transform function\n\nConstructs that result in starting a transformation, take a `transformFn` as optional prop. While the defined type for this function is `any`, it must implement the same signature as esbuild's `transformSync` function.\n\n```ts\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformFn: (options: TransformOptions): TransformResult => {\n try {\n // custom implementation returning TransformResult\n } catch (error) {\n // throw TransformFailure exception here\n }\n },,\n});\n```\n\nInstead of esbuild, the provided function will be invoked with the calculated transform options. The custom transform function can amend, change or discard any of these.\n\nFailures have to cause a `TransformFailure` exception in order to be fully handled.\n\n### Upgrading from AWS CDK v1\n\nThis version is compatible with AWS CDK v2. For the previous, AWS CDK v1 compatible release, see [cdk-esbuild@v2](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\nTo upgrade from AWS CDK v1 and cdk-esbuild@v2, please follow these steps:\n\n- This version requires AWS CDK v2. Follow the [official migration guide](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html) to upgrade.\n- Update the package dependency to v3: `npm install --save @mrgrain/cdk-esbuild@^3.0.0`\n- `esbuild` is installed as an optional dependency. If your setup does not automatically install optional dependencies, make sure to add it as an explicit dependency.\n- Any use of `InlineCode` variations has to be updated. Previously the second parameter was either of type `TransformerProps` or `TransformOptions`. Now it must be `TransformerProps`.\\\n If the passed value is of type `TransformOptions`, turn it into the correct type like this:\n\n ```ts\n const oldOptions: TransformOptions = {...}\n\n new InlineTypeScriptCode('// inline code', {\n transformOptions: oldOptions\n });\n ```\n\n## Versioning\n\nThis package follows [Semantic Versioning](https://semver.org/), with the exception of upgrades to `esbuild`. These will be released as **minor versions** and often include breaking changes from `esbuild`.\n\n### Npm Tags\n\nSome users prefer to use tags over version ranges. The following stable tags are available for use:\n\n- `cdk-v1`, `cdk-v2` are provided for the latest release compatible with each version of the AWS CDK.\n\n- `latest` is the most recent stable release.\n\nThese tags also exist, but usage is strongly not recommended:\n\n- `unstable`, `next` are used for pre-release of the current and next major version respectively.\n\n- ~~`cdk-1.x.x`~~ tags have been deprecated in favour of `cdk-v1`. Use that one instead.\n\n## Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/mrgrain/cdk-esbuild/projects/1) Please submit any feature requests as issues to the repository.\n\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## Library authors\n\nBuilding a library consumed by other packages that relies on `cdk-esbuild` might require you to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve based on the directory name of the calling file, and traverse the tree upwards to the root of your library package (that's where `package.json` and `tsconfig.json` are):\n\n```ts\n// file: project/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"), // now: /user/project\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed.\n\nPlease open an issue if you encounter any difficulties.\n"
|
|
2946
|
+
"markdown": "<img src=\"https://raw.githubusercontent.com/mrgrain/cdk-esbuild/main/images/wordmark-light.svg\" alt=\"cdk-esbuild\">\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Python & .NET](#python-and-net) | [FAQ](#faq)\n\n[](https://constructs.dev/packages/@mrgrain/cdk-esbuild)\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for TypeScript and JavaScript.\nThis package makes _esbuild_ available to deploy AWS Lambda Functions, static websites or publish assets for further usage.\n\nAWS CDK [supports _esbuild_ for AWS Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html), but the implementation cannot be used with other Constructs and doesn't expose all of _esbuild_'s API.\n\n## Getting started\n\nInstall `cdk-esbuild` for Node.js using your favorite package manager:\n\n```sh\n# npm\nnpm install @mrgrain/cdk-esbuild@4\n# Yarn\nyarn add @mrgrain/cdk-esbuild@4\n# pnpm\npnpm add @mrgrain/cdk-esbuild@4\n```\n\nFor Python and .NET, use these commands:\n\n```sh\n# Python\npip install mrgrain.cdk-esbuild\n\n# .NET\ndotnet add package Mrgrain.CdkEsbuild\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda (TypeScript)](examples/typescript/lambda) and [Lambda (Python)](examples/typescript/lambda) for complete working examples of a how to deploy an AWS Lambda Function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_18_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [React App (TypeScript)](examples/typescript/website) for a complete working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website (TypeScript)](examples/typescript/website) for a complete working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on `@aws-cdk/aws-synthetics-alpha` which is in developer preview.\n> Please install the package using the respective tool of your language.\n> You may need to update your source code when upgrading to a newer version of this alpha package.\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/canary.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by AWS Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n }),\n});\n```\n\n## Documentation\n\nThe package exports various different constructs for use with AWS CDK features. The guiding design principal for this package is _\"extend, don't replace\"_. Expect constructs that you can provide as props, not complete replacements.\n\nFor use in **Lambda Functions** and **Synthetic Canaries**, the following classes implement `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode` & `JavaScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode` & `InlineJavaScriptCode`\n\nFor use with **S3 bucket deployments**, classes implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource` & `JavaScriptSource`\n\n> _Code and Source constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` & `JavaScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n- `EsbuildProvider` implements `IBuildProvider` and `ITransformProvider` \\\n provides the default _esbuild_ API implementation and can be replaced with a custom implementation\n\n### [API Reference](API.md)\n\nAuto-generated reference for Constructs, Classes and Structs.\nThis information is also available as part of your IDE's code completion.\n\n### Python and .NET\n\n_Esbuild_ requires a platform and architecture specific binary and currently has to be installed with a Node.js package manager like npm.\n\nWhen using `cdk-esbuild` with Python or .NET, the package will automatically detect a local or global installation of the _esbuild_ npm package.If none can be found, it will fall back to dynamically installing a copy into a temporary location.\nThe exact algorithm of this mechanism must be treated as an implementation detail and should not be relied on.\nIt can however be configured to a certain extent.\nSee the examples below for more details.\n\nThis \"best effort\" approach makes it easy to get started.\nBut is not always desirable, for example in environments with limited network access or when guaranteed repeatability of builds is a concern.\nYou have several options to opt-out of this behavior.\n\n#### Provide a controlled installation of _esbuild_\n\nThe first step is to install a version of _esbuild_ that is controlled by you.\n\nI **strongly recommend** to install _esbuild_ as a local package.\nThe easiest approach is to manage an additional Node.js project at the root of your AWS CDK project.\n_esbuild_ can then be added to the `package.json` file and it is your responsibility to ensure required setup steps are taken in all environments like development machines and CI/CD systems.\n\nInstead of installing the _esbuild_ package in a local project, it can also be **installed globally** with `npm install -g esbuild` or a similar command.\nThis approach might be preferred if a build container is prepared ahead of time, thus avoiding repeated package installation.\n\n#### Change the automatic package detection\n\nThe second step is to make `cdk-esbuild` aware of your chosen install location.\nThis step is optional, but it's a good idea to have the location or at least the method explicitly defined.\n\nTo do this, you can set the `esbuildModulePath` prop on a `EsbuildProvider`.\nEither pass a known, absolute or relative path as value, or use the `EsbuildSource` helper to set the detection method.\nPlease refer to the [`EsbuildSource`](API.md#esbuildsource) reference for a complete list of available methods.\n\n```ts\n// Use the standard Node.js algorithm to detect a locally installed package\nnew EsbuildProvider({\n esbuildModulePath: EsbuildSource.nodeJs(),\n});\n\n// Provide an explicit path\nnew EsbuildProvider({\n esbuildModulePath: '/home/user/node_modules/esbuild/lib/main.js',\n});\n```\n\nAs a no-code approach, the `CDK_ESBUILD_MODULE_PATH` environment variable can be set in the same way.\nAn advantage of this is that the path can easily be changed for different systems.\nSetting the env variable can be used with any installation approach, but is typically paired with a global installation of the _esbuild_ package.\nNote that `esbuildModulePath` takes precedence.\n\n#### Override the default detection method\n\nFor an AWS CDK app with many instances of `TypeScriptCode` etc. it would be annoying to change the above for every single one of them.\nLuckily, the default can be changed for all usages per app:\n\n```ts\nconst customModule = new EsbuildProvider({\n esbuildModulePath: EsbuildSource.globalPaths(),\n});\nEsbuildProvider.overrideDefaultProvider(customModule);\n```\n\n### Customizing the Esbuild API\n\nThis package uses the _esbuild_ JavaScript API.\nIn most situations the default API configuration will be suitable.\nBut sometimes it is required to configure _esbuild_ differently or even provide a custom implementation.\nCommon reasons for this are:\n\n- Using a pre-installed version of _esbuild_ with Python or .NET\n- If features not supported by the synchronous API are required, e.g. support for plugins\n- If the default version constraints for _esbuild_ are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n\nFor these scenarios, this package offers customization options and an interface to provide a custom implementation:\n\n```ts\ndeclare const myCustomBuildProvider: IBuildProvider;\n\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: myCustomBuildProvider,\n});\n\n\ndeclare const myCustomTransformProvider: ITransformProvider;\n\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: myCustomTransformProvider,\n});\n```\n\n#### Esbuild binary path\n\nIt is possible to override the binary used by _esbuild_ by setting a property on `EsbuildProvider`.\nThis is the same as setting the `ESBUILD_BINARY_PATH` environment variable.\nDefining the `esbuildBinaryPath` prop takes precedence.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildBinaryPath: \"path/to/esbuild/binary\",\n});\n\n// This will use a different esbuild binary\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\n#### Esbuild module path\n\nThe Node.js module discovery algorithm will normally be used to find the _esbuild_ package.\nIt can be useful to use specify a different module path, for example if a globally installed package should be used instead of a local version.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildModulePath: \"/home/user/node_modules/esbuild/lib/main.js\",\n});\n\n// This will use a different esbuild module\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\nAlternatively supported by setting the `CDK_ESBUILD_MODULE_PATH` environment variable, which will apply to all uses.\nDefining the `esbuildModulePath` prop takes precedence.\n\nIf you are a Python or .NET users, see the language specific guide for a more detailed expose on this feature.\n\n#### Custom Build and Transform API implementations\n\n> 💡 See [esbuild plugins w/ TypeScript](examples/typescript/esbuild-with-plugins) for a complete working example of a custom Build API implementation.\n\nA custom implementation can be provided by implementing `IBuildProvider` or `ITransformProvider`:\n\n```ts\nclass CustomEsbuild implements IBuildProvider, ITransformProvider {\n buildSync(options: BuildOptions): void {\n // custom implementation goes here\n }\n\n transformSync(code: string, options?: TransformOptions): string {\n // custom implementation goes here, return transformed code\n return 'transformed code';\n }\n}\n\n// These will use the custom implementation\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: new CustomEsbuild(),\n});\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: new CustomEsbuild(),\n});\n```\n\nInstead of _esbuild_, the custom methods will be invoked with all computed options.\nCustom implementations can amend, change or discard any of the options.\n\nThe `IBuildProvider` integration with CDK relies on the `outdir`/`outfile` values and it's usually required to use them unchanged.\n\n`ITransformProvider` must return the transformed code as a string.\n\nFailures and warnings should be printed to stderr and thrown as the respective _esbuild_ error.\n\n#### Overriding the default implementation providers\n\nThe default implementation can also be set for all usages of `TypeScriptCode` etc. in an AWS CDK app.\nYou can change the default for both APIs at once or set a different implementation for each of them.\n\n```ts\nconst myCustomEsbuildProvider = new MyCustomEsbuildProvider();\n\nEsbuildProvider.overrideDefaultProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultBuildProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultTransformationProvider(myCustomEsbuildProvider);\n\n// This will use the custom provider without the need to define it as a prop\nnew TypeScriptCode(\"src/handler.ts\");\n```\n\n### Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/users/mrgrain/projects/1/views/7)\n\nPlease submit feature requests as issues to the repository.\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## FAQ\n\n### Should I use this package in production?\n\nThis package is stable and ready to be used in production, as many do.\nHowever _esbuild_ has not yet released a version 1.0.0 and its API is still in active development.\nPlease read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNote that _esbuild_ minor version upgrades are also introduced in **minor versions** of this package.\nSince _esbuild_ is pre v1, these versions typically introduce breaking changes and this package will inherit them.\nTo avoid this behavior, add the desired _esbuild_ version as a dependency to your package.\n\n### How do I upgrade from `cdk-esbuild` v3?\n\nPlease refer to the [v4 release notes](https://github.com/mrgrain/cdk-esbuild/releases/tag/v4.0.0) for a list of backwards incompatible changes and respective upgrade instructions.\n\n### [TS/JS] Why am I getting the error `Cannot find module 'esbuild'`?\n\nThis package depends on _esbuild_ as an optional dependencies. If optional dependencies are not installed automatically on your system (e.g. when using npm v4-6), install _esbuild_ explicitly:\n\n```console\nnpm install esbuild\n```\n\n### [TS/JS] How can I use a different version of _esbuild_?\n\nUse the [override](https://docs.npmjs.com/cli/v9/configuring-npm/package-json?v=true#overrides) instructions for your package manager to force a specific version, for example:\n\n```json\n{\n \"overrides\": {\n \"esbuild\": \"0.14.7\"\n }\n}\n```\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, `buildOptions` / `transformOptions` can be cast to `any`:\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\", {\n buildOptions: {\n unsupportedOption: \"value\"\n } as any,\n});\n```\n\n### [Python/.NET] How can I use a different version of _esbuild_?\n\nInstall the desired version of _esbuild_ locally or globally [as described in the documentation above](#python-and-dotnet).\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, use the appropriate language features to cast any incompatible `buildOptions` / `transformOptions` to the correct types.\n\n### Can I use this package in my published AWS CDK Construct?\n\nIt is possible to use `cdk-esbuild` in a published AWS CDK Construct library, but not recommended.\nAlways prefer to ship a compiled `.js` file or even bundle a zip archive in your package.\nFor AWS Lambda Functions, [projen provides an excellent solution](https://projen.io/awscdk.html#aws-lambda-functions).\n\nIf you do end up consuming `cdk-esbuild`, you will have to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve the path based on the directory name of the calling file:\n\n```js\n// file: node_modules/construct-library/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"),\n // now: /user/local-app/node_modules/construct-library\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed. Please open an issue if you encounter any difficulties.\n\n### Can I use this package with AWS CDK v1?\n\nYes, the `2.x.x` line of `cdk-esbuild` is compatible with AWS CDK v1. You can find the [documentation for it on the v2 branch](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\nHowever, in line with AWS CDK v2, this version release now only receives security updates and critical bug fixes and support will fully end on June 1, 2023.\n"
|
|
2804
2947
|
},
|
|
2805
2948
|
"repository": {
|
|
2806
2949
|
"type": "git",
|
|
@@ -2808,6 +2951,11 @@
|
|
|
2808
2951
|
},
|
|
2809
2952
|
"schema": "jsii/0.10.0",
|
|
2810
2953
|
"targets": {
|
|
2954
|
+
"dotnet": {
|
|
2955
|
+
"iconUrl": "https://raw.githubusercontent.com/mrgrain/cdk-esbuild/main/images/logo.png",
|
|
2956
|
+
"namespace": "Mrgrain.CdkEsbuild",
|
|
2957
|
+
"packageId": "Mrgrain.CdkEsbuild"
|
|
2958
|
+
},
|
|
2811
2959
|
"js": {
|
|
2812
2960
|
"npm": "@mrgrain/cdk-esbuild"
|
|
2813
2961
|
},
|
|
@@ -2837,14 +2985,14 @@
|
|
|
2837
2985
|
{
|
|
2838
2986
|
"abstract": true,
|
|
2839
2987
|
"docs": {
|
|
2840
|
-
"remarks": "
|
|
2988
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
2841
2989
|
"stability": "stable",
|
|
2842
|
-
"summary": "A
|
|
2990
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
2843
2991
|
},
|
|
2844
2992
|
"immutable": true,
|
|
2845
2993
|
"locationInModule": {
|
|
2846
2994
|
"filename": "src/asset.ts",
|
|
2847
|
-
"line":
|
|
2995
|
+
"line": 40
|
|
2848
2996
|
},
|
|
2849
2997
|
"name": "entryPoints",
|
|
2850
2998
|
"type": {
|
|
@@ -2904,7 +3052,7 @@
|
|
|
2904
3052
|
"kind": "interface",
|
|
2905
3053
|
"locationInModule": {
|
|
2906
3054
|
"filename": "src/esbuild-types.ts",
|
|
2907
|
-
"line":
|
|
3055
|
+
"line": 86
|
|
2908
3056
|
},
|
|
2909
3057
|
"name": "BuildOptions",
|
|
2910
3058
|
"properties": [
|
|
@@ -2917,7 +3065,7 @@
|
|
|
2917
3065
|
"immutable": true,
|
|
2918
3066
|
"locationInModule": {
|
|
2919
3067
|
"filename": "src/esbuild-types.ts",
|
|
2920
|
-
"line":
|
|
3068
|
+
"line": 140
|
|
2921
3069
|
},
|
|
2922
3070
|
"name": "absWorkingDir",
|
|
2923
3071
|
"optional": true,
|
|
@@ -2925,6 +3073,28 @@
|
|
|
2925
3073
|
"primitive": "string"
|
|
2926
3074
|
}
|
|
2927
3075
|
},
|
|
3076
|
+
{
|
|
3077
|
+
"abstract": true,
|
|
3078
|
+
"docs": {
|
|
3079
|
+
"stability": "stable",
|
|
3080
|
+
"summary": "Documentation: https://esbuild.github.io/api/#alias."
|
|
3081
|
+
},
|
|
3082
|
+
"immutable": true,
|
|
3083
|
+
"locationInModule": {
|
|
3084
|
+
"filename": "src/esbuild-types.ts",
|
|
3085
|
+
"line": 106
|
|
3086
|
+
},
|
|
3087
|
+
"name": "alias",
|
|
3088
|
+
"optional": true,
|
|
3089
|
+
"type": {
|
|
3090
|
+
"collection": {
|
|
3091
|
+
"elementtype": {
|
|
3092
|
+
"primitive": "string"
|
|
3093
|
+
},
|
|
3094
|
+
"kind": "map"
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
2928
3098
|
{
|
|
2929
3099
|
"abstract": true,
|
|
2930
3100
|
"docs": {
|
|
@@ -2934,7 +3104,7 @@
|
|
|
2934
3104
|
"immutable": true,
|
|
2935
3105
|
"locationInModule": {
|
|
2936
3106
|
"filename": "src/esbuild-types.ts",
|
|
2937
|
-
"line":
|
|
3107
|
+
"line": 118
|
|
2938
3108
|
},
|
|
2939
3109
|
"name": "allowOverwrite",
|
|
2940
3110
|
"optional": true,
|
|
@@ -2951,7 +3121,7 @@
|
|
|
2951
3121
|
"immutable": true,
|
|
2952
3122
|
"locationInModule": {
|
|
2953
3123
|
"filename": "src/esbuild-types.ts",
|
|
2954
|
-
"line":
|
|
3124
|
+
"line": 130
|
|
2955
3125
|
},
|
|
2956
3126
|
"name": "assetNames",
|
|
2957
3127
|
"optional": true,
|
|
@@ -2968,7 +3138,7 @@
|
|
|
2968
3138
|
"immutable": true,
|
|
2969
3139
|
"locationInModule": {
|
|
2970
3140
|
"filename": "src/esbuild-types.ts",
|
|
2971
|
-
"line":
|
|
3141
|
+
"line": 134
|
|
2972
3142
|
},
|
|
2973
3143
|
"name": "banner",
|
|
2974
3144
|
"optional": true,
|
|
@@ -2990,7 +3160,7 @@
|
|
|
2990
3160
|
"immutable": true,
|
|
2991
3161
|
"locationInModule": {
|
|
2992
3162
|
"filename": "src/esbuild-types.ts",
|
|
2993
|
-
"line":
|
|
3163
|
+
"line": 88
|
|
2994
3164
|
},
|
|
2995
3165
|
"name": "bundle",
|
|
2996
3166
|
"optional": true,
|
|
@@ -3007,7 +3177,7 @@
|
|
|
3007
3177
|
"immutable": true,
|
|
3008
3178
|
"locationInModule": {
|
|
3009
3179
|
"filename": "src/esbuild-types.ts",
|
|
3010
|
-
"line":
|
|
3180
|
+
"line": 50
|
|
3011
3181
|
},
|
|
3012
3182
|
"name": "charset",
|
|
3013
3183
|
"optional": true,
|
|
@@ -3024,7 +3194,7 @@
|
|
|
3024
3194
|
"immutable": true,
|
|
3025
3195
|
"locationInModule": {
|
|
3026
3196
|
"filename": "src/esbuild-types.ts",
|
|
3027
|
-
"line":
|
|
3197
|
+
"line": 128
|
|
3028
3198
|
},
|
|
3029
3199
|
"name": "chunkNames",
|
|
3030
3200
|
"optional": true,
|
|
@@ -3041,7 +3211,7 @@
|
|
|
3041
3211
|
"immutable": true,
|
|
3042
3212
|
"locationInModule": {
|
|
3043
3213
|
"filename": "src/esbuild-types.ts",
|
|
3044
|
-
"line":
|
|
3214
|
+
"line": 77
|
|
3045
3215
|
},
|
|
3046
3216
|
"name": "color",
|
|
3047
3217
|
"optional": true,
|
|
@@ -3058,7 +3228,7 @@
|
|
|
3058
3228
|
"immutable": true,
|
|
3059
3229
|
"locationInModule": {
|
|
3060
3230
|
"filename": "src/esbuild-types.ts",
|
|
3061
|
-
"line":
|
|
3231
|
+
"line": 114
|
|
3062
3232
|
},
|
|
3063
3233
|
"name": "conditions",
|
|
3064
3234
|
"optional": true,
|
|
@@ -3080,7 +3250,7 @@
|
|
|
3080
3250
|
"immutable": true,
|
|
3081
3251
|
"locationInModule": {
|
|
3082
3252
|
"filename": "src/esbuild-types.ts",
|
|
3083
|
-
"line":
|
|
3253
|
+
"line": 70
|
|
3084
3254
|
},
|
|
3085
3255
|
"name": "define",
|
|
3086
3256
|
"optional": true,
|
|
@@ -3102,7 +3272,7 @@
|
|
|
3102
3272
|
"immutable": true,
|
|
3103
3273
|
"locationInModule": {
|
|
3104
3274
|
"filename": "src/esbuild-types.ts",
|
|
3105
|
-
"line":
|
|
3275
|
+
"line": 40
|
|
3106
3276
|
},
|
|
3107
3277
|
"name": "drop",
|
|
3108
3278
|
"optional": true,
|
|
@@ -3124,7 +3294,7 @@
|
|
|
3124
3294
|
"immutable": true,
|
|
3125
3295
|
"locationInModule": {
|
|
3126
3296
|
"filename": "src/esbuild-types.ts",
|
|
3127
|
-
"line":
|
|
3297
|
+
"line": 126
|
|
3128
3298
|
},
|
|
3129
3299
|
"name": "entryNames",
|
|
3130
3300
|
"optional": true,
|
|
@@ -3141,7 +3311,7 @@
|
|
|
3141
3311
|
"immutable": true,
|
|
3142
3312
|
"locationInModule": {
|
|
3143
3313
|
"filename": "src/esbuild-types.ts",
|
|
3144
|
-
"line":
|
|
3314
|
+
"line": 102
|
|
3145
3315
|
},
|
|
3146
3316
|
"name": "external",
|
|
3147
3317
|
"optional": true,
|
|
@@ -3163,7 +3333,7 @@
|
|
|
3163
3333
|
"immutable": true,
|
|
3164
3334
|
"locationInModule": {
|
|
3165
3335
|
"filename": "src/esbuild-types.ts",
|
|
3166
|
-
"line":
|
|
3336
|
+
"line": 136
|
|
3167
3337
|
},
|
|
3168
3338
|
"name": "footer",
|
|
3169
3339
|
"optional": true,
|
|
@@ -3197,7 +3367,7 @@
|
|
|
3197
3367
|
"abstract": true,
|
|
3198
3368
|
"docs": {
|
|
3199
3369
|
"stability": "stable",
|
|
3200
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3370
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
3201
3371
|
},
|
|
3202
3372
|
"immutable": true,
|
|
3203
3373
|
"locationInModule": {
|
|
@@ -3219,7 +3389,7 @@
|
|
|
3219
3389
|
"immutable": true,
|
|
3220
3390
|
"locationInModule": {
|
|
3221
3391
|
"filename": "src/esbuild-types.ts",
|
|
3222
|
-
"line":
|
|
3392
|
+
"line": 54
|
|
3223
3393
|
},
|
|
3224
3394
|
"name": "ignoreAnnotations",
|
|
3225
3395
|
"optional": true,
|
|
@@ -3236,7 +3406,7 @@
|
|
|
3236
3406
|
"immutable": true,
|
|
3237
3407
|
"locationInModule": {
|
|
3238
3408
|
"filename": "src/esbuild-types.ts",
|
|
3239
|
-
"line":
|
|
3409
|
+
"line": 138
|
|
3240
3410
|
},
|
|
3241
3411
|
"name": "incremental",
|
|
3242
3412
|
"optional": true,
|
|
@@ -3253,7 +3423,7 @@
|
|
|
3253
3423
|
"immutable": true,
|
|
3254
3424
|
"locationInModule": {
|
|
3255
3425
|
"filename": "src/esbuild-types.ts",
|
|
3256
|
-
"line":
|
|
3426
|
+
"line": 132
|
|
3257
3427
|
},
|
|
3258
3428
|
"name": "inject",
|
|
3259
3429
|
"optional": true,
|
|
@@ -3275,7 +3445,7 @@
|
|
|
3275
3445
|
"immutable": true,
|
|
3276
3446
|
"locationInModule": {
|
|
3277
3447
|
"filename": "src/esbuild-types.ts",
|
|
3278
|
-
"line":
|
|
3448
|
+
"line": 57
|
|
3279
3449
|
},
|
|
3280
3450
|
"name": "jsx",
|
|
3281
3451
|
"optional": true,
|
|
@@ -3283,6 +3453,23 @@
|
|
|
3283
3453
|
"primitive": "string"
|
|
3284
3454
|
}
|
|
3285
3455
|
},
|
|
3456
|
+
{
|
|
3457
|
+
"abstract": true,
|
|
3458
|
+
"docs": {
|
|
3459
|
+
"stability": "stable",
|
|
3460
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-development."
|
|
3461
|
+
},
|
|
3462
|
+
"immutable": true,
|
|
3463
|
+
"locationInModule": {
|
|
3464
|
+
"filename": "src/esbuild-types.ts",
|
|
3465
|
+
"line": 65
|
|
3466
|
+
},
|
|
3467
|
+
"name": "jsxDev",
|
|
3468
|
+
"optional": true,
|
|
3469
|
+
"type": {
|
|
3470
|
+
"primitive": "boolean"
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3286
3473
|
{
|
|
3287
3474
|
"abstract": true,
|
|
3288
3475
|
"docs": {
|
|
@@ -3292,7 +3479,7 @@
|
|
|
3292
3479
|
"immutable": true,
|
|
3293
3480
|
"locationInModule": {
|
|
3294
3481
|
"filename": "src/esbuild-types.ts",
|
|
3295
|
-
"line":
|
|
3482
|
+
"line": 59
|
|
3296
3483
|
},
|
|
3297
3484
|
"name": "jsxFactory",
|
|
3298
3485
|
"optional": true,
|
|
@@ -3309,7 +3496,7 @@
|
|
|
3309
3496
|
"immutable": true,
|
|
3310
3497
|
"locationInModule": {
|
|
3311
3498
|
"filename": "src/esbuild-types.ts",
|
|
3312
|
-
"line":
|
|
3499
|
+
"line": 61
|
|
3313
3500
|
},
|
|
3314
3501
|
"name": "jsxFragment",
|
|
3315
3502
|
"optional": true,
|
|
@@ -3317,6 +3504,40 @@
|
|
|
3317
3504
|
"primitive": "string"
|
|
3318
3505
|
}
|
|
3319
3506
|
},
|
|
3507
|
+
{
|
|
3508
|
+
"abstract": true,
|
|
3509
|
+
"docs": {
|
|
3510
|
+
"stability": "stable",
|
|
3511
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-import-source."
|
|
3512
|
+
},
|
|
3513
|
+
"immutable": true,
|
|
3514
|
+
"locationInModule": {
|
|
3515
|
+
"filename": "src/esbuild-types.ts",
|
|
3516
|
+
"line": 63
|
|
3517
|
+
},
|
|
3518
|
+
"name": "jsxImportSource",
|
|
3519
|
+
"optional": true,
|
|
3520
|
+
"type": {
|
|
3521
|
+
"primitive": "string"
|
|
3522
|
+
}
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"abstract": true,
|
|
3526
|
+
"docs": {
|
|
3527
|
+
"stability": "stable",
|
|
3528
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-side-effects."
|
|
3529
|
+
},
|
|
3530
|
+
"immutable": true,
|
|
3531
|
+
"locationInModule": {
|
|
3532
|
+
"filename": "src/esbuild-types.ts",
|
|
3533
|
+
"line": 67
|
|
3534
|
+
},
|
|
3535
|
+
"name": "jsxSideEffects",
|
|
3536
|
+
"optional": true,
|
|
3537
|
+
"type": {
|
|
3538
|
+
"primitive": "boolean"
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3320
3541
|
{
|
|
3321
3542
|
"abstract": true,
|
|
3322
3543
|
"docs": {
|
|
@@ -3326,7 +3547,7 @@
|
|
|
3326
3547
|
"immutable": true,
|
|
3327
3548
|
"locationInModule": {
|
|
3328
3549
|
"filename": "src/esbuild-types.ts",
|
|
3329
|
-
"line":
|
|
3550
|
+
"line": 74
|
|
3330
3551
|
},
|
|
3331
3552
|
"name": "keepNames",
|
|
3332
3553
|
"optional": true,
|
|
@@ -3360,7 +3581,7 @@
|
|
|
3360
3581
|
"immutable": true,
|
|
3361
3582
|
"locationInModule": {
|
|
3362
3583
|
"filename": "src/esbuild-types.ts",
|
|
3363
|
-
"line":
|
|
3584
|
+
"line": 108
|
|
3364
3585
|
},
|
|
3365
3586
|
"name": "loader",
|
|
3366
3587
|
"optional": true,
|
|
@@ -3382,7 +3603,7 @@
|
|
|
3382
3603
|
"immutable": true,
|
|
3383
3604
|
"locationInModule": {
|
|
3384
3605
|
"filename": "src/esbuild-types.ts",
|
|
3385
|
-
"line":
|
|
3606
|
+
"line": 79
|
|
3386
3607
|
},
|
|
3387
3608
|
"name": "logLevel",
|
|
3388
3609
|
"optional": true,
|
|
@@ -3399,7 +3620,7 @@
|
|
|
3399
3620
|
"immutable": true,
|
|
3400
3621
|
"locationInModule": {
|
|
3401
3622
|
"filename": "src/esbuild-types.ts",
|
|
3402
|
-
"line":
|
|
3623
|
+
"line": 81
|
|
3403
3624
|
},
|
|
3404
3625
|
"name": "logLimit",
|
|
3405
3626
|
"optional": true,
|
|
@@ -3416,7 +3637,7 @@
|
|
|
3416
3637
|
"immutable": true,
|
|
3417
3638
|
"locationInModule": {
|
|
3418
3639
|
"filename": "src/esbuild-types.ts",
|
|
3419
|
-
"line":
|
|
3640
|
+
"line": 83
|
|
3420
3641
|
},
|
|
3421
3642
|
"name": "logOverride",
|
|
3422
3643
|
"optional": true,
|
|
@@ -3433,12 +3654,12 @@
|
|
|
3433
3654
|
"abstract": true,
|
|
3434
3655
|
"docs": {
|
|
3435
3656
|
"stability": "stable",
|
|
3436
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3657
|
+
"summary": "Documentation: https://esbuild.github.io/api/#main-fields."
|
|
3437
3658
|
},
|
|
3438
3659
|
"immutable": true,
|
|
3439
3660
|
"locationInModule": {
|
|
3440
3661
|
"filename": "src/esbuild-types.ts",
|
|
3441
|
-
"line":
|
|
3662
|
+
"line": 112
|
|
3442
3663
|
},
|
|
3443
3664
|
"name": "mainFields",
|
|
3444
3665
|
"optional": true,
|
|
@@ -3460,7 +3681,7 @@
|
|
|
3460
3681
|
"immutable": true,
|
|
3461
3682
|
"locationInModule": {
|
|
3462
3683
|
"filename": "src/esbuild-types.ts",
|
|
3463
|
-
"line":
|
|
3684
|
+
"line": 38
|
|
3464
3685
|
},
|
|
3465
3686
|
"name": "mangleCache",
|
|
3466
3687
|
"optional": true,
|
|
@@ -3491,7 +3712,7 @@
|
|
|
3491
3712
|
"immutable": true,
|
|
3492
3713
|
"locationInModule": {
|
|
3493
3714
|
"filename": "src/esbuild-types.ts",
|
|
3494
|
-
"line":
|
|
3715
|
+
"line": 32
|
|
3495
3716
|
},
|
|
3496
3717
|
"name": "mangleProps",
|
|
3497
3718
|
"optional": true,
|
|
@@ -3508,7 +3729,7 @@
|
|
|
3508
3729
|
"immutable": true,
|
|
3509
3730
|
"locationInModule": {
|
|
3510
3731
|
"filename": "src/esbuild-types.ts",
|
|
3511
|
-
"line":
|
|
3732
|
+
"line": 36
|
|
3512
3733
|
},
|
|
3513
3734
|
"name": "mangleQuoted",
|
|
3514
3735
|
"optional": true,
|
|
@@ -3525,7 +3746,7 @@
|
|
|
3525
3746
|
"immutable": true,
|
|
3526
3747
|
"locationInModule": {
|
|
3527
3748
|
"filename": "src/esbuild-types.ts",
|
|
3528
|
-
"line":
|
|
3749
|
+
"line": 96
|
|
3529
3750
|
},
|
|
3530
3751
|
"name": "metafile",
|
|
3531
3752
|
"optional": true,
|
|
@@ -3542,7 +3763,7 @@
|
|
|
3542
3763
|
"immutable": true,
|
|
3543
3764
|
"locationInModule": {
|
|
3544
3765
|
"filename": "src/esbuild-types.ts",
|
|
3545
|
-
"line":
|
|
3766
|
+
"line": 42
|
|
3546
3767
|
},
|
|
3547
3768
|
"name": "minify",
|
|
3548
3769
|
"optional": true,
|
|
@@ -3559,7 +3780,7 @@
|
|
|
3559
3780
|
"immutable": true,
|
|
3560
3781
|
"locationInModule": {
|
|
3561
3782
|
"filename": "src/esbuild-types.ts",
|
|
3562
|
-
"line":
|
|
3783
|
+
"line": 46
|
|
3563
3784
|
},
|
|
3564
3785
|
"name": "minifyIdentifiers",
|
|
3565
3786
|
"optional": true,
|
|
@@ -3576,7 +3797,7 @@
|
|
|
3576
3797
|
"immutable": true,
|
|
3577
3798
|
"locationInModule": {
|
|
3578
3799
|
"filename": "src/esbuild-types.ts",
|
|
3579
|
-
"line":
|
|
3800
|
+
"line": 48
|
|
3580
3801
|
},
|
|
3581
3802
|
"name": "minifySyntax",
|
|
3582
3803
|
"optional": true,
|
|
@@ -3593,7 +3814,7 @@
|
|
|
3593
3814
|
"immutable": true,
|
|
3594
3815
|
"locationInModule": {
|
|
3595
3816
|
"filename": "src/esbuild-types.ts",
|
|
3596
|
-
"line":
|
|
3817
|
+
"line": 44
|
|
3597
3818
|
},
|
|
3598
3819
|
"name": "minifyWhitespace",
|
|
3599
3820
|
"optional": true,
|
|
@@ -3610,7 +3831,7 @@
|
|
|
3610
3831
|
"immutable": true,
|
|
3611
3832
|
"locationInModule": {
|
|
3612
3833
|
"filename": "src/esbuild-types.ts",
|
|
3613
|
-
"line":
|
|
3834
|
+
"line": 142
|
|
3614
3835
|
},
|
|
3615
3836
|
"name": "nodePaths",
|
|
3616
3837
|
"optional": true,
|
|
@@ -3632,7 +3853,7 @@
|
|
|
3632
3853
|
"immutable": true,
|
|
3633
3854
|
"locationInModule": {
|
|
3634
3855
|
"filename": "src/esbuild-types.ts",
|
|
3635
|
-
"line":
|
|
3856
|
+
"line": 100
|
|
3636
3857
|
},
|
|
3637
3858
|
"name": "outbase",
|
|
3638
3859
|
"optional": true,
|
|
@@ -3649,7 +3870,7 @@
|
|
|
3649
3870
|
"immutable": true,
|
|
3650
3871
|
"locationInModule": {
|
|
3651
3872
|
"filename": "src/esbuild-types.ts",
|
|
3652
|
-
"line":
|
|
3873
|
+
"line": 98
|
|
3653
3874
|
},
|
|
3654
3875
|
"name": "outdir",
|
|
3655
3876
|
"optional": true,
|
|
@@ -3666,7 +3887,7 @@
|
|
|
3666
3887
|
"immutable": true,
|
|
3667
3888
|
"locationInModule": {
|
|
3668
3889
|
"filename": "src/esbuild-types.ts",
|
|
3669
|
-
"line":
|
|
3890
|
+
"line": 122
|
|
3670
3891
|
},
|
|
3671
3892
|
"name": "outExtension",
|
|
3672
3893
|
"optional": true,
|
|
@@ -3688,7 +3909,7 @@
|
|
|
3688
3909
|
"immutable": true,
|
|
3689
3910
|
"locationInModule": {
|
|
3690
3911
|
"filename": "src/esbuild-types.ts",
|
|
3691
|
-
"line":
|
|
3912
|
+
"line": 94
|
|
3692
3913
|
},
|
|
3693
3914
|
"name": "outfile",
|
|
3694
3915
|
"optional": true,
|
|
@@ -3696,6 +3917,23 @@
|
|
|
3696
3917
|
"primitive": "string"
|
|
3697
3918
|
}
|
|
3698
3919
|
},
|
|
3920
|
+
{
|
|
3921
|
+
"abstract": true,
|
|
3922
|
+
"docs": {
|
|
3923
|
+
"stability": "stable",
|
|
3924
|
+
"summary": "Documentation: https://esbuild.github.io/api/#packages."
|
|
3925
|
+
},
|
|
3926
|
+
"immutable": true,
|
|
3927
|
+
"locationInModule": {
|
|
3928
|
+
"filename": "src/esbuild-types.ts",
|
|
3929
|
+
"line": 104
|
|
3930
|
+
},
|
|
3931
|
+
"name": "packages",
|
|
3932
|
+
"optional": true,
|
|
3933
|
+
"type": {
|
|
3934
|
+
"primitive": "string"
|
|
3935
|
+
}
|
|
3936
|
+
},
|
|
3699
3937
|
{
|
|
3700
3938
|
"abstract": true,
|
|
3701
3939
|
"docs": {
|
|
@@ -3705,7 +3943,7 @@
|
|
|
3705
3943
|
"immutable": true,
|
|
3706
3944
|
"locationInModule": {
|
|
3707
3945
|
"filename": "src/esbuild-types.ts",
|
|
3708
|
-
"line":
|
|
3946
|
+
"line": 29
|
|
3709
3947
|
},
|
|
3710
3948
|
"name": "platform",
|
|
3711
3949
|
"optional": true,
|
|
@@ -3722,7 +3960,7 @@
|
|
|
3722
3960
|
"immutable": true,
|
|
3723
3961
|
"locationInModule": {
|
|
3724
3962
|
"filename": "src/esbuild-types.ts",
|
|
3725
|
-
"line":
|
|
3963
|
+
"line": 92
|
|
3726
3964
|
},
|
|
3727
3965
|
"name": "preserveSymlinks",
|
|
3728
3966
|
"optional": true,
|
|
@@ -3739,7 +3977,7 @@
|
|
|
3739
3977
|
"immutable": true,
|
|
3740
3978
|
"locationInModule": {
|
|
3741
3979
|
"filename": "src/esbuild-types.ts",
|
|
3742
|
-
"line":
|
|
3980
|
+
"line": 124
|
|
3743
3981
|
},
|
|
3744
3982
|
"name": "publicPath",
|
|
3745
3983
|
"optional": true,
|
|
@@ -3756,7 +3994,7 @@
|
|
|
3756
3994
|
"immutable": true,
|
|
3757
3995
|
"locationInModule": {
|
|
3758
3996
|
"filename": "src/esbuild-types.ts",
|
|
3759
|
-
"line":
|
|
3997
|
+
"line": 72
|
|
3760
3998
|
},
|
|
3761
3999
|
"name": "pure",
|
|
3762
4000
|
"optional": true,
|
|
@@ -3778,7 +4016,7 @@
|
|
|
3778
4016
|
"immutable": true,
|
|
3779
4017
|
"locationInModule": {
|
|
3780
4018
|
"filename": "src/esbuild-types.ts",
|
|
3781
|
-
"line":
|
|
4019
|
+
"line": 34
|
|
3782
4020
|
},
|
|
3783
4021
|
"name": "reserveProps",
|
|
3784
4022
|
"optional": true,
|
|
@@ -3795,7 +4033,7 @@
|
|
|
3795
4033
|
"immutable": true,
|
|
3796
4034
|
"locationInModule": {
|
|
3797
4035
|
"filename": "src/esbuild-types.ts",
|
|
3798
|
-
"line":
|
|
4036
|
+
"line": 110
|
|
3799
4037
|
},
|
|
3800
4038
|
"name": "resolveExtensions",
|
|
3801
4039
|
"optional": true,
|
|
@@ -3877,7 +4115,7 @@
|
|
|
3877
4115
|
"immutable": true,
|
|
3878
4116
|
"locationInModule": {
|
|
3879
4117
|
"filename": "src/esbuild-types.ts",
|
|
3880
|
-
"line":
|
|
4118
|
+
"line": 90
|
|
3881
4119
|
},
|
|
3882
4120
|
"name": "splitting",
|
|
3883
4121
|
"optional": true,
|
|
@@ -3947,7 +4185,7 @@
|
|
|
3947
4185
|
"immutable": true,
|
|
3948
4186
|
"locationInModule": {
|
|
3949
4187
|
"filename": "src/esbuild-types.ts",
|
|
3950
|
-
"line":
|
|
4188
|
+
"line": 52
|
|
3951
4189
|
},
|
|
3952
4190
|
"name": "treeShaking",
|
|
3953
4191
|
"optional": true,
|
|
@@ -3964,7 +4202,7 @@
|
|
|
3964
4202
|
"immutable": true,
|
|
3965
4203
|
"locationInModule": {
|
|
3966
4204
|
"filename": "src/esbuild-types.ts",
|
|
3967
|
-
"line":
|
|
4205
|
+
"line": 120
|
|
3968
4206
|
},
|
|
3969
4207
|
"name": "tsconfig",
|
|
3970
4208
|
"optional": true,
|
|
@@ -3981,7 +4219,7 @@
|
|
|
3981
4219
|
"immutable": true,
|
|
3982
4220
|
"locationInModule": {
|
|
3983
4221
|
"filename": "src/esbuild-types.ts",
|
|
3984
|
-
"line":
|
|
4222
|
+
"line": 116
|
|
3985
4223
|
},
|
|
3986
4224
|
"name": "write",
|
|
3987
4225
|
"optional": true,
|
|
@@ -4002,64 +4240,59 @@
|
|
|
4002
4240
|
"kind": "interface",
|
|
4003
4241
|
"locationInModule": {
|
|
4004
4242
|
"filename": "src/bundler.ts",
|
|
4005
|
-
"line":
|
|
4243
|
+
"line": 34
|
|
4006
4244
|
},
|
|
4007
4245
|
"name": "BundlerProps",
|
|
4008
4246
|
"properties": [
|
|
4009
4247
|
{
|
|
4010
4248
|
"abstract": true,
|
|
4011
4249
|
"docs": {
|
|
4012
|
-
"
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
"default": "esbuild.buildSync",
|
|
4017
|
-
"remarks": "The function will receive the computed options from the bundler. It can use with these options as it wishes, however `outdir`/`outfile` must be respected to integrate with CDK.\nMust throw a `BuildFailure` on failure to correctly inform the bundler.",
|
|
4018
|
-
"returns": "esbuild.BuildResult",
|
|
4019
|
-
"stability": "experimental",
|
|
4020
|
-
"summary": "Escape hatch to provide the bundler with a custom build function."
|
|
4250
|
+
"remarks": "* `buildOptions.outdir: string`\nThe actual path for the output directory is defined by CDK. However setting this option allows to write files into a subdirectory. \\\nFor example `{ outdir: 'js' }` will create an asset with a single directory called `js`, which contains all built files. This approach can be useful for static website deployments, where JavaScript code should be placed into a subdirectory. \\\n*Cannot be used together with `outfile`*.\n* `buildOptions.outfile: string`\nRelative path to a file inside the CDK asset output directory.\nFor example `{ outfile: 'js/index.js' }` will create an asset with a single directory called `js`, which contains a single file `index.js`. This can be useful to rename the entry point. \\\n*Cannot be used with multiple entryPoints or together with `outdir`.*\n* `buildOptions.absWorkingDir: string`\nAbsolute path to the [esbuild working directory](https://esbuild.github.io/api/#working-directory) and defaults to the [current working directory](https://en.wikipedia.org/wiki/Working_directory). \\\nIf paths cannot be found, a good starting point is to look at the concatenation of `absWorkingDir + entryPoint`. It must always be a valid absolute path pointing to the entry point. When needed, the probably easiest way to set absWorkingDir is to use a combination of `resolve` and `__dirname` (see \"Library authors\" section in the documentation).",
|
|
4251
|
+
"see": "https://esbuild.github.io/api/#build-api",
|
|
4252
|
+
"stability": "stable",
|
|
4253
|
+
"summary": "Build options passed on to esbuild. Please refer to the esbuild Build API docs for details."
|
|
4021
4254
|
},
|
|
4022
4255
|
"immutable": true,
|
|
4023
4256
|
"locationInModule": {
|
|
4024
4257
|
"filename": "src/bundler.ts",
|
|
4025
|
-
"line":
|
|
4258
|
+
"line": 53
|
|
4026
4259
|
},
|
|
4027
|
-
"name": "
|
|
4260
|
+
"name": "buildOptions",
|
|
4028
4261
|
"optional": true,
|
|
4029
4262
|
"type": {
|
|
4030
|
-
"
|
|
4263
|
+
"fqn": "@mrgrain/cdk-esbuild.BuildOptions"
|
|
4031
4264
|
}
|
|
4032
4265
|
},
|
|
4033
4266
|
{
|
|
4034
4267
|
"abstract": true,
|
|
4035
4268
|
"docs": {
|
|
4036
|
-
"
|
|
4037
|
-
"
|
|
4269
|
+
"default": "new EsbuildProvider()",
|
|
4270
|
+
"remarks": "Configure the default `EsbuildProvider` for more options or\nprovide a custom `IBuildProvider` as an escape hatch.",
|
|
4038
4271
|
"stability": "stable",
|
|
4039
|
-
"summary": "
|
|
4272
|
+
"summary": "The esbuild Build API implementation to be used."
|
|
4040
4273
|
},
|
|
4041
4274
|
"immutable": true,
|
|
4042
4275
|
"locationInModule": {
|
|
4043
4276
|
"filename": "src/bundler.ts",
|
|
4044
|
-
"line":
|
|
4277
|
+
"line": 65
|
|
4045
4278
|
},
|
|
4046
|
-
"name": "
|
|
4279
|
+
"name": "buildProvider",
|
|
4047
4280
|
"optional": true,
|
|
4048
4281
|
"type": {
|
|
4049
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4282
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
4050
4283
|
}
|
|
4051
4284
|
},
|
|
4052
4285
|
{
|
|
4053
4286
|
"abstract": true,
|
|
4054
4287
|
"docs": {
|
|
4055
|
-
"remarks": "* When provided with a `string` or `array`, all files are copied to the root of asset staging directory.\n* When given a `map`, the key indicates the destination relative to the asset staging directory and the value is a list of all sources to be copied.\n\nTherefore the following values for `copyDir` are all equivalent:\n
|
|
4288
|
+
"remarks": "* When provided with a `string` or `array`, all files are copied to the root of asset staging directory.\n* When given a `map`, the key indicates the destination relative to the asset staging directory and the value is a list of all sources to be copied.\n\nTherefore the following values for `copyDir` are all equivalent:\n```\n{ copyDir: \"path/to/source\" }\n{ copyDir: [\"path/to/source\"] }\n{ copyDir: { \".\": \"path/to/source\" } }\n{ copyDir: { \".\": [\"path/to/source\"] } }\n```\nThe destination cannot be outside of the asset staging directory.\nIf you are receiving the error \"Cannot copy files to outside of the asset staging directory.\"\nyou are likely using `..` or an absolute path as key on the `copyDir` map.\nInstead use only relative paths and avoid `..`.",
|
|
4056
4289
|
"stability": "stable",
|
|
4057
4290
|
"summary": "Copy additional files to the code [asset staging directory](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.AssetStaging.html#absolutestagedpath), before the build runs. Files copied like this will be overwritten by esbuild if they share the same name as any of the outputs."
|
|
4058
4291
|
},
|
|
4059
4292
|
"immutable": true,
|
|
4060
4293
|
"locationInModule": {
|
|
4061
4294
|
"filename": "src/bundler.ts",
|
|
4062
|
-
"line":
|
|
4295
|
+
"line": 88
|
|
4063
4296
|
},
|
|
4064
4297
|
"name": "copyDir",
|
|
4065
4298
|
"optional": true,
|
|
@@ -4102,24 +4335,6 @@
|
|
|
4102
4335
|
]
|
|
4103
4336
|
}
|
|
4104
4337
|
}
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
"abstract": true,
|
|
4108
|
-
"docs": {
|
|
4109
|
-
"remarks": "This is the same as setting the ESBUILD_BINARY_PATH environment variable.",
|
|
4110
|
-
"stability": "experimental",
|
|
4111
|
-
"summary": "Path to the binary used by esbuild."
|
|
4112
|
-
},
|
|
4113
|
-
"immutable": true,
|
|
4114
|
-
"locationInModule": {
|
|
4115
|
-
"filename": "src/bundler.ts",
|
|
4116
|
-
"line": 88
|
|
4117
|
-
},
|
|
4118
|
-
"name": "esbuildBinaryPath",
|
|
4119
|
-
"optional": true,
|
|
4120
|
-
"type": {
|
|
4121
|
-
"primitive": "string"
|
|
4122
|
-
}
|
|
4123
4338
|
}
|
|
4124
4339
|
],
|
|
4125
4340
|
"symbolId": "src/bundler:BundlerProps"
|
|
@@ -4196,6 +4411,103 @@
|
|
|
4196
4411
|
],
|
|
4197
4412
|
"symbolId": "aws-lambda/lib/code:CodeConfig"
|
|
4198
4413
|
},
|
|
4414
|
+
"@mrgrain/cdk-esbuild.CompilerOptions": {
|
|
4415
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4416
|
+
"datatype": true,
|
|
4417
|
+
"docs": {
|
|
4418
|
+
"stability": "stable"
|
|
4419
|
+
},
|
|
4420
|
+
"fqn": "@mrgrain/cdk-esbuild.CompilerOptions",
|
|
4421
|
+
"kind": "interface",
|
|
4422
|
+
"locationInModule": {
|
|
4423
|
+
"filename": "src/esbuild-types.ts",
|
|
4424
|
+
"line": 603
|
|
4425
|
+
},
|
|
4426
|
+
"name": "CompilerOptions",
|
|
4427
|
+
"properties": [
|
|
4428
|
+
{
|
|
4429
|
+
"abstract": true,
|
|
4430
|
+
"docs": {
|
|
4431
|
+
"stability": "stable"
|
|
4432
|
+
},
|
|
4433
|
+
"immutable": true,
|
|
4434
|
+
"locationInModule": {
|
|
4435
|
+
"filename": "src/esbuild-types.ts",
|
|
4436
|
+
"line": 607
|
|
4437
|
+
},
|
|
4438
|
+
"name": "importsNotUsedAsValues",
|
|
4439
|
+
"optional": true,
|
|
4440
|
+
"type": {
|
|
4441
|
+
"primitive": "string"
|
|
4442
|
+
}
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
"abstract": true,
|
|
4446
|
+
"docs": {
|
|
4447
|
+
"stability": "stable"
|
|
4448
|
+
},
|
|
4449
|
+
"immutable": true,
|
|
4450
|
+
"locationInModule": {
|
|
4451
|
+
"filename": "src/esbuild-types.ts",
|
|
4452
|
+
"line": 604
|
|
4453
|
+
},
|
|
4454
|
+
"name": "jsxFactory",
|
|
4455
|
+
"optional": true,
|
|
4456
|
+
"type": {
|
|
4457
|
+
"primitive": "string"
|
|
4458
|
+
}
|
|
4459
|
+
},
|
|
4460
|
+
{
|
|
4461
|
+
"abstract": true,
|
|
4462
|
+
"docs": {
|
|
4463
|
+
"stability": "stable"
|
|
4464
|
+
},
|
|
4465
|
+
"immutable": true,
|
|
4466
|
+
"locationInModule": {
|
|
4467
|
+
"filename": "src/esbuild-types.ts",
|
|
4468
|
+
"line": 605
|
|
4469
|
+
},
|
|
4470
|
+
"name": "jsxFragmentFactory",
|
|
4471
|
+
"optional": true,
|
|
4472
|
+
"type": {
|
|
4473
|
+
"primitive": "string"
|
|
4474
|
+
}
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"abstract": true,
|
|
4478
|
+
"docs": {
|
|
4479
|
+
"stability": "stable"
|
|
4480
|
+
},
|
|
4481
|
+
"immutable": true,
|
|
4482
|
+
"locationInModule": {
|
|
4483
|
+
"filename": "src/esbuild-types.ts",
|
|
4484
|
+
"line": 608
|
|
4485
|
+
},
|
|
4486
|
+
"name": "preserveValueImports",
|
|
4487
|
+
"optional": true,
|
|
4488
|
+
"type": {
|
|
4489
|
+
"primitive": "boolean"
|
|
4490
|
+
}
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"abstract": true,
|
|
4494
|
+
"docs": {
|
|
4495
|
+
"stability": "stable"
|
|
4496
|
+
},
|
|
4497
|
+
"immutable": true,
|
|
4498
|
+
"locationInModule": {
|
|
4499
|
+
"filename": "src/esbuild-types.ts",
|
|
4500
|
+
"line": 606
|
|
4501
|
+
},
|
|
4502
|
+
"name": "useDefineForClassFields",
|
|
4503
|
+
"optional": true,
|
|
4504
|
+
"type": {
|
|
4505
|
+
"primitive": "boolean"
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4508
|
+
],
|
|
4509
|
+
"symbolId": "src/esbuild-types:CompilerOptions"
|
|
4510
|
+
},
|
|
4199
4511
|
"@mrgrain/cdk-esbuild.EsbuildAsset": {
|
|
4200
4512
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4201
4513
|
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
@@ -4211,7 +4523,7 @@
|
|
|
4211
4523
|
},
|
|
4212
4524
|
"locationInModule": {
|
|
4213
4525
|
"filename": "src/asset.ts",
|
|
4214
|
-
"line":
|
|
4526
|
+
"line": 57
|
|
4215
4527
|
},
|
|
4216
4528
|
"parameters": [
|
|
4217
4529
|
{
|
|
@@ -4237,7 +4549,7 @@
|
|
|
4237
4549
|
"kind": "class",
|
|
4238
4550
|
"locationInModule": {
|
|
4239
4551
|
"filename": "src/asset.ts",
|
|
4240
|
-
"line":
|
|
4552
|
+
"line": 53
|
|
4241
4553
|
},
|
|
4242
4554
|
"name": "EsbuildAsset",
|
|
4243
4555
|
"symbolId": "src/asset:EsbuildAsset"
|
|
@@ -4261,9 +4573,9 @@
|
|
|
4261
4573
|
"parameters": [
|
|
4262
4574
|
{
|
|
4263
4575
|
"docs": {
|
|
4264
|
-
"remarks": "
|
|
4576
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4265
4577
|
"stability": "experimental",
|
|
4266
|
-
"summary": "A
|
|
4578
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4267
4579
|
},
|
|
4268
4580
|
"name": "entryPoints",
|
|
4269
4581
|
"type": {
|
|
@@ -4295,7 +4607,7 @@
|
|
|
4295
4607
|
{
|
|
4296
4608
|
"docs": {
|
|
4297
4609
|
"stability": "experimental",
|
|
4298
|
-
"summary": "Props to change the
|
|
4610
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4299
4611
|
},
|
|
4300
4612
|
"name": "props",
|
|
4301
4613
|
"type": {
|
|
@@ -4313,14 +4625,14 @@
|
|
|
4313
4625
|
"properties": [
|
|
4314
4626
|
{
|
|
4315
4627
|
"docs": {
|
|
4316
|
-
"remarks": "
|
|
4628
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4317
4629
|
"stability": "experimental",
|
|
4318
|
-
"summary": "A
|
|
4630
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4319
4631
|
},
|
|
4320
4632
|
"immutable": true,
|
|
4321
4633
|
"locationInModule": {
|
|
4322
4634
|
"filename": "src/bundler.ts",
|
|
4323
|
-
"line":
|
|
4635
|
+
"line": 132
|
|
4324
4636
|
},
|
|
4325
4637
|
"name": "entryPoints",
|
|
4326
4638
|
"type": {
|
|
@@ -4382,12 +4694,12 @@
|
|
|
4382
4694
|
{
|
|
4383
4695
|
"docs": {
|
|
4384
4696
|
"stability": "experimental",
|
|
4385
|
-
"summary": "Props to change the
|
|
4697
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4386
4698
|
},
|
|
4387
4699
|
"immutable": true,
|
|
4388
4700
|
"locationInModule": {
|
|
4389
4701
|
"filename": "src/bundler.ts",
|
|
4390
|
-
"line":
|
|
4702
|
+
"line": 139
|
|
4391
4703
|
},
|
|
4392
4704
|
"name": "props",
|
|
4393
4705
|
"type": {
|
|
@@ -4412,14 +4724,14 @@
|
|
|
4412
4724
|
},
|
|
4413
4725
|
"locationInModule": {
|
|
4414
4726
|
"filename": "src/code.ts",
|
|
4415
|
-
"line":
|
|
4727
|
+
"line": 48
|
|
4416
4728
|
},
|
|
4417
4729
|
"parameters": [
|
|
4418
4730
|
{
|
|
4419
4731
|
"docs": {
|
|
4420
|
-
"remarks": "
|
|
4732
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4421
4733
|
"stability": "stable",
|
|
4422
|
-
"summary": "A
|
|
4734
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4423
4735
|
},
|
|
4424
4736
|
"name": "entryPoints",
|
|
4425
4737
|
"type": {
|
|
@@ -4473,7 +4785,7 @@
|
|
|
4473
4785
|
"kind": "class",
|
|
4474
4786
|
"locationInModule": {
|
|
4475
4787
|
"filename": "src/code.ts",
|
|
4476
|
-
"line":
|
|
4788
|
+
"line": 26
|
|
4477
4789
|
},
|
|
4478
4790
|
"methods": [
|
|
4479
4791
|
{
|
|
@@ -4483,7 +4795,7 @@
|
|
|
4483
4795
|
},
|
|
4484
4796
|
"locationInModule": {
|
|
4485
4797
|
"filename": "src/code.ts",
|
|
4486
|
-
"line":
|
|
4798
|
+
"line": 93
|
|
4487
4799
|
},
|
|
4488
4800
|
"name": "bind",
|
|
4489
4801
|
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
@@ -4509,7 +4821,7 @@
|
|
|
4509
4821
|
},
|
|
4510
4822
|
"locationInModule": {
|
|
4511
4823
|
"filename": "src/code.ts",
|
|
4512
|
-
"line":
|
|
4824
|
+
"line": 121
|
|
4513
4825
|
},
|
|
4514
4826
|
"name": "bindToResource",
|
|
4515
4827
|
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
@@ -4535,7 +4847,7 @@
|
|
|
4535
4847
|
},
|
|
4536
4848
|
"locationInModule": {
|
|
4537
4849
|
"filename": "src/code.ts",
|
|
4538
|
-
"line":
|
|
4850
|
+
"line": 29
|
|
4539
4851
|
},
|
|
4540
4852
|
"name": "getAsset",
|
|
4541
4853
|
"parameters": [
|
|
@@ -4558,14 +4870,14 @@
|
|
|
4558
4870
|
"properties": [
|
|
4559
4871
|
{
|
|
4560
4872
|
"docs": {
|
|
4561
|
-
"remarks": "
|
|
4873
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4562
4874
|
"stability": "stable",
|
|
4563
|
-
"summary": "A
|
|
4875
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4564
4876
|
},
|
|
4565
4877
|
"immutable": true,
|
|
4566
4878
|
"locationInModule": {
|
|
4567
4879
|
"filename": "src/code.ts",
|
|
4568
|
-
"line":
|
|
4880
|
+
"line": 65
|
|
4569
4881
|
},
|
|
4570
4882
|
"name": "entryPoints",
|
|
4571
4883
|
"type": {
|
|
@@ -4600,7 +4912,7 @@
|
|
|
4600
4912
|
},
|
|
4601
4913
|
"locationInModule": {
|
|
4602
4914
|
"filename": "src/code.ts",
|
|
4603
|
-
"line":
|
|
4915
|
+
"line": 39
|
|
4604
4916
|
},
|
|
4605
4917
|
"name": "asset",
|
|
4606
4918
|
"protected": true,
|
|
@@ -4616,7 +4928,7 @@
|
|
|
4616
4928
|
},
|
|
4617
4929
|
"locationInModule": {
|
|
4618
4930
|
"filename": "src/code.ts",
|
|
4619
|
-
"line":
|
|
4931
|
+
"line": 46
|
|
4620
4932
|
},
|
|
4621
4933
|
"name": "isInline",
|
|
4622
4934
|
"type": {
|
|
@@ -4629,7 +4941,7 @@
|
|
|
4629
4941
|
},
|
|
4630
4942
|
"locationInModule": {
|
|
4631
4943
|
"filename": "src/code.ts",
|
|
4632
|
-
"line":
|
|
4944
|
+
"line": 37
|
|
4633
4945
|
},
|
|
4634
4946
|
"name": "props",
|
|
4635
4947
|
"protected": true,
|
|
@@ -4640,171 +4952,519 @@
|
|
|
4640
4952
|
],
|
|
4641
4953
|
"symbolId": "src/code:EsbuildCode"
|
|
4642
4954
|
},
|
|
4643
|
-
"@mrgrain/cdk-esbuild.
|
|
4955
|
+
"@mrgrain/cdk-esbuild.EsbuildProvider": {
|
|
4644
4956
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4645
|
-
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4646
4957
|
"docs": {
|
|
4647
|
-
"stability": "
|
|
4648
|
-
"summary": "
|
|
4958
|
+
"stability": "stable",
|
|
4959
|
+
"summary": "Default esbuild implementation calling esbuild's JavaScript API."
|
|
4649
4960
|
},
|
|
4650
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4961
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProvider",
|
|
4651
4962
|
"initializer": {
|
|
4652
4963
|
"docs": {
|
|
4653
|
-
"stability": "
|
|
4964
|
+
"stability": "stable"
|
|
4654
4965
|
},
|
|
4655
4966
|
"locationInModule": {
|
|
4656
|
-
"filename": "src/
|
|
4657
|
-
"line":
|
|
4967
|
+
"filename": "src/provider.ts",
|
|
4968
|
+
"line": 139
|
|
4658
4969
|
},
|
|
4659
4970
|
"parameters": [
|
|
4660
4971
|
{
|
|
4661
|
-
"docs": {
|
|
4662
|
-
"stability": "experimental",
|
|
4663
|
-
"summary": "The inline code to be transformed."
|
|
4664
|
-
},
|
|
4665
|
-
"name": "code",
|
|
4666
|
-
"type": {
|
|
4667
|
-
"primitive": "string"
|
|
4668
|
-
}
|
|
4669
|
-
},
|
|
4670
|
-
{
|
|
4671
|
-
"docs": {
|
|
4672
|
-
"remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `props.transformOptions`:\n- `loader='js'`",
|
|
4673
|
-
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4674
|
-
"stability": "experimental",
|
|
4675
|
-
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
4676
|
-
},
|
|
4677
4972
|
"name": "props",
|
|
4678
4973
|
"optional": true,
|
|
4679
4974
|
"type": {
|
|
4680
|
-
"
|
|
4681
|
-
"types": [
|
|
4682
|
-
{
|
|
4683
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
4684
|
-
},
|
|
4685
|
-
{
|
|
4686
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4687
|
-
}
|
|
4688
|
-
]
|
|
4689
|
-
}
|
|
4975
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProviderProps"
|
|
4690
4976
|
}
|
|
4691
4977
|
}
|
|
4692
4978
|
]
|
|
4693
4979
|
},
|
|
4980
|
+
"interfaces": [
|
|
4981
|
+
"@mrgrain/cdk-esbuild.IBuildProvider",
|
|
4982
|
+
"@mrgrain/cdk-esbuild.ITransformProvider"
|
|
4983
|
+
],
|
|
4694
4984
|
"kind": "class",
|
|
4695
4985
|
"locationInModule": {
|
|
4696
|
-
"filename": "src/
|
|
4697
|
-
"line":
|
|
4698
|
-
},
|
|
4699
|
-
"name": "InlineJavaScriptCode",
|
|
4700
|
-
"symbolId": "src/inline-code:InlineJavaScriptCode"
|
|
4701
|
-
},
|
|
4702
|
-
"@mrgrain/cdk-esbuild.InlineJsxCode": {
|
|
4703
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4704
|
-
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4705
|
-
"docs": {
|
|
4706
|
-
"stability": "experimental",
|
|
4707
|
-
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4986
|
+
"filename": "src/provider.ts",
|
|
4987
|
+
"line": 95
|
|
4708
4988
|
},
|
|
4709
|
-
"
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
"locationInModule": {
|
|
4715
|
-
"filename": "src/inline-code.ts",
|
|
4716
|
-
"line": 115
|
|
4717
|
-
},
|
|
4718
|
-
"parameters": [
|
|
4719
|
-
{
|
|
4720
|
-
"docs": {
|
|
4721
|
-
"stability": "experimental",
|
|
4722
|
-
"summary": "The inline code to be transformed."
|
|
4723
|
-
},
|
|
4724
|
-
"name": "code",
|
|
4725
|
-
"type": {
|
|
4726
|
-
"primitive": "string"
|
|
4727
|
-
}
|
|
4989
|
+
"methods": [
|
|
4990
|
+
{
|
|
4991
|
+
"docs": {
|
|
4992
|
+
"stability": "stable",
|
|
4993
|
+
"summary": "Get the default implementation for the Build API."
|
|
4728
4994
|
},
|
|
4729
|
-
{
|
|
4730
|
-
"
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
},
|
|
4736
|
-
"name": "props",
|
|
4737
|
-
"optional": true,
|
|
4995
|
+
"locationInModule": {
|
|
4996
|
+
"filename": "src/provider.ts",
|
|
4997
|
+
"line": 118
|
|
4998
|
+
},
|
|
4999
|
+
"name": "defaultBuildProvider",
|
|
5000
|
+
"returns": {
|
|
4738
5001
|
"type": {
|
|
4739
|
-
"
|
|
4740
|
-
"types": [
|
|
4741
|
-
{
|
|
4742
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
4743
|
-
},
|
|
4744
|
-
{
|
|
4745
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4746
|
-
}
|
|
4747
|
-
]
|
|
4748
|
-
}
|
|
5002
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
4749
5003
|
}
|
|
4750
|
-
}
|
|
4751
|
-
|
|
4752
|
-
},
|
|
4753
|
-
"kind": "class",
|
|
4754
|
-
"locationInModule": {
|
|
4755
|
-
"filename": "src/inline-code.ts",
|
|
4756
|
-
"line": 114
|
|
4757
|
-
},
|
|
4758
|
-
"name": "InlineJsxCode",
|
|
4759
|
-
"symbolId": "src/inline-code:InlineJsxCode"
|
|
4760
|
-
},
|
|
4761
|
-
"@mrgrain/cdk-esbuild.InlineTsxCode": {
|
|
4762
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4763
|
-
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4764
|
-
"docs": {
|
|
4765
|
-
"stability": "experimental",
|
|
4766
|
-
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4767
|
-
},
|
|
4768
|
-
"fqn": "@mrgrain/cdk-esbuild.InlineTsxCode",
|
|
4769
|
-
"initializer": {
|
|
4770
|
-
"docs": {
|
|
4771
|
-
"stability": "experimental"
|
|
4772
|
-
},
|
|
4773
|
-
"locationInModule": {
|
|
4774
|
-
"filename": "src/inline-code.ts",
|
|
4775
|
-
"line": 175
|
|
5004
|
+
},
|
|
5005
|
+
"static": true
|
|
4776
5006
|
},
|
|
4777
|
-
|
|
4778
|
-
{
|
|
4779
|
-
"
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
"
|
|
5007
|
+
{
|
|
5008
|
+
"docs": {
|
|
5009
|
+
"stability": "stable",
|
|
5010
|
+
"summary": "Get the default implementation for the Transformation API."
|
|
5011
|
+
},
|
|
5012
|
+
"locationInModule": {
|
|
5013
|
+
"filename": "src/provider.ts",
|
|
5014
|
+
"line": 132
|
|
5015
|
+
},
|
|
5016
|
+
"name": "defaultTransformationProvider",
|
|
5017
|
+
"returns": {
|
|
4784
5018
|
"type": {
|
|
4785
|
-
"
|
|
5019
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
4786
5020
|
}
|
|
4787
5021
|
},
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
5022
|
+
"static": true
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
"docs": {
|
|
5026
|
+
"stability": "stable",
|
|
5027
|
+
"summary": "Set the default implementation for the Build API."
|
|
5028
|
+
},
|
|
5029
|
+
"locationInModule": {
|
|
5030
|
+
"filename": "src/provider.ts",
|
|
5031
|
+
"line": 111
|
|
5032
|
+
},
|
|
5033
|
+
"name": "overrideDefaultBuildProvider",
|
|
5034
|
+
"parameters": [
|
|
5035
|
+
{
|
|
5036
|
+
"name": "provider",
|
|
5037
|
+
"type": {
|
|
5038
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5039
|
+
}
|
|
5040
|
+
}
|
|
5041
|
+
],
|
|
5042
|
+
"static": true
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
"docs": {
|
|
5046
|
+
"stability": "stable",
|
|
5047
|
+
"summary": "Set the default implementation for both Build and Transformation API."
|
|
5048
|
+
},
|
|
5049
|
+
"locationInModule": {
|
|
5050
|
+
"filename": "src/provider.ts",
|
|
5051
|
+
"line": 103
|
|
5052
|
+
},
|
|
5053
|
+
"name": "overrideDefaultProvider",
|
|
5054
|
+
"parameters": [
|
|
5055
|
+
{
|
|
5056
|
+
"name": "provider",
|
|
5057
|
+
"type": {
|
|
5058
|
+
"fqn": "@mrgrain/cdk-esbuild.IEsbuildProvider"
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
5061
|
+
],
|
|
5062
|
+
"static": true
|
|
5063
|
+
},
|
|
5064
|
+
{
|
|
5065
|
+
"docs": {
|
|
5066
|
+
"stability": "stable",
|
|
5067
|
+
"summary": "Set the default implementation for the Transformation API."
|
|
5068
|
+
},
|
|
5069
|
+
"locationInModule": {
|
|
5070
|
+
"filename": "src/provider.ts",
|
|
5071
|
+
"line": 125
|
|
5072
|
+
},
|
|
5073
|
+
"name": "overrideDefaultTransformationProvider",
|
|
5074
|
+
"parameters": [
|
|
5075
|
+
{
|
|
5076
|
+
"name": "provider",
|
|
5077
|
+
"type": {
|
|
5078
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5079
|
+
}
|
|
5080
|
+
}
|
|
5081
|
+
],
|
|
5082
|
+
"static": true
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
"docs": {
|
|
5086
|
+
"remarks": "During synth time, the method will receive all computed `BuildOptions` from the bundler.\n\nIt MUST implement any output options to integrate correctly and MAY use any other options.\nOn failure, it SHOULD print any warnings & errors to stderr and throw a `BuildFailure` to inform the bundler.",
|
|
5087
|
+
"stability": "stable",
|
|
5088
|
+
"summary": "A method implementing the code build."
|
|
5089
|
+
},
|
|
5090
|
+
"locationInModule": {
|
|
5091
|
+
"filename": "src/provider.ts",
|
|
5092
|
+
"line": 144
|
|
5093
|
+
},
|
|
5094
|
+
"name": "buildSync",
|
|
5095
|
+
"overrides": "@mrgrain/cdk-esbuild.IBuildProvider",
|
|
5096
|
+
"parameters": [
|
|
5097
|
+
{
|
|
5098
|
+
"name": "options",
|
|
5099
|
+
"type": {
|
|
5100
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderBuildOptions"
|
|
5101
|
+
}
|
|
5102
|
+
}
|
|
5103
|
+
]
|
|
5104
|
+
},
|
|
5105
|
+
{
|
|
5106
|
+
"docs": {
|
|
5107
|
+
"remarks": "During synth time, the method will receive the inline code and all computed `TransformOptions` from the bundler.\n\nMUST return the transformed code as a string to integrate correctly.\nIt MAY use these options to do so.\nOn failure, it SHOULD print any warnings & errors to stderr and throw a `TransformFailure` to inform the bundler.",
|
|
5108
|
+
"stability": "stable",
|
|
5109
|
+
"summary": "A method implementing the inline code transformation."
|
|
5110
|
+
},
|
|
5111
|
+
"locationInModule": {
|
|
5112
|
+
"filename": "src/provider.ts",
|
|
5113
|
+
"line": 151
|
|
5114
|
+
},
|
|
5115
|
+
"name": "transformSync",
|
|
5116
|
+
"overrides": "@mrgrain/cdk-esbuild.ITransformProvider",
|
|
5117
|
+
"parameters": [
|
|
5118
|
+
{
|
|
5119
|
+
"name": "input",
|
|
5120
|
+
"type": {
|
|
5121
|
+
"primitive": "string"
|
|
5122
|
+
}
|
|
4794
5123
|
},
|
|
4795
|
-
|
|
5124
|
+
{
|
|
5125
|
+
"name": "options",
|
|
5126
|
+
"optional": true,
|
|
5127
|
+
"type": {
|
|
5128
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderTransformOptions"
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
],
|
|
5132
|
+
"returns": {
|
|
5133
|
+
"type": {
|
|
5134
|
+
"primitive": "string"
|
|
5135
|
+
}
|
|
5136
|
+
}
|
|
5137
|
+
}
|
|
5138
|
+
],
|
|
5139
|
+
"name": "EsbuildProvider",
|
|
5140
|
+
"symbolId": "src/provider:EsbuildProvider"
|
|
5141
|
+
},
|
|
5142
|
+
"@mrgrain/cdk-esbuild.EsbuildProviderProps": {
|
|
5143
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5144
|
+
"datatype": true,
|
|
5145
|
+
"docs": {
|
|
5146
|
+
"stability": "stable",
|
|
5147
|
+
"summary": "Configure the default EsbuildProvider."
|
|
5148
|
+
},
|
|
5149
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProviderProps",
|
|
5150
|
+
"kind": "interface",
|
|
5151
|
+
"locationInModule": {
|
|
5152
|
+
"filename": "src/provider.ts",
|
|
5153
|
+
"line": 60
|
|
5154
|
+
},
|
|
5155
|
+
"name": "EsbuildProviderProps",
|
|
5156
|
+
"properties": [
|
|
5157
|
+
{
|
|
5158
|
+
"abstract": true,
|
|
5159
|
+
"docs": {
|
|
5160
|
+
"remarks": "This is the same as setting the ESBUILD_BINARY_PATH environment variable.",
|
|
5161
|
+
"stability": "stable",
|
|
5162
|
+
"summary": "Path to the binary used by esbuild."
|
|
5163
|
+
},
|
|
5164
|
+
"immutable": true,
|
|
5165
|
+
"locationInModule": {
|
|
5166
|
+
"filename": "src/provider.ts",
|
|
5167
|
+
"line": 68
|
|
5168
|
+
},
|
|
5169
|
+
"name": "esbuildBinaryPath",
|
|
5170
|
+
"optional": true,
|
|
5171
|
+
"type": {
|
|
5172
|
+
"primitive": "string"
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"abstract": true,
|
|
5177
|
+
"docs": {
|
|
5178
|
+
"default": "- `CDK_ESBUILD_MODULE_PATH` or package resolution (see description)",
|
|
5179
|
+
"remarks": "E.g. \"/home/user/.npm/node_modules/esbuild/lib/main.js\"\n\nIf not set, the module path will be determined in the following order:\n\n- Use a path from the `CDK_ESBUILD_MODULE_PATH` environment variable\n- In TypeScript, fallback to the default Node.js package resolution mechanism\n- All other languages (Python, Go, .NET, Java) use an automatic \"best effort\" resolution mechanism. \\\n The exact algorithm of this mechanism is considered an implementation detail and should not be relied on.\n If `esbuild` cannot be found, it might be installed dynamically to a temporary location.\n To opt-out of this behavior, set either `esbuildModulePath` or `CDK_ESBUILD_MODULE_PATH` env variable.\n\nUse the static methods on `EsbuildSource` to customize the default behavior.",
|
|
5180
|
+
"stability": "stable",
|
|
5181
|
+
"summary": "Absolute path to the esbuild module JS file."
|
|
5182
|
+
},
|
|
5183
|
+
"immutable": true,
|
|
5184
|
+
"locationInModule": {
|
|
5185
|
+
"filename": "src/provider.ts",
|
|
5186
|
+
"line": 89
|
|
5187
|
+
},
|
|
5188
|
+
"name": "esbuildModulePath",
|
|
5189
|
+
"optional": true,
|
|
5190
|
+
"type": {
|
|
5191
|
+
"primitive": "string"
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
],
|
|
5195
|
+
"symbolId": "src/provider:EsbuildProviderProps"
|
|
5196
|
+
},
|
|
5197
|
+
"@mrgrain/cdk-esbuild.EsbuildSource": {
|
|
5198
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5199
|
+
"docs": {
|
|
5200
|
+
"stability": "stable"
|
|
5201
|
+
},
|
|
5202
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildSource",
|
|
5203
|
+
"kind": "class",
|
|
5204
|
+
"locationInModule": {
|
|
5205
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5206
|
+
"line": 11
|
|
5207
|
+
},
|
|
5208
|
+
"methods": [
|
|
5209
|
+
{
|
|
5210
|
+
"docs": {
|
|
5211
|
+
"stability": "stable",
|
|
5212
|
+
"summary": "Try to find the module in most common paths."
|
|
5213
|
+
},
|
|
5214
|
+
"locationInModule": {
|
|
5215
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5216
|
+
"line": 30
|
|
5217
|
+
},
|
|
5218
|
+
"name": "anywhere",
|
|
5219
|
+
"returns": {
|
|
4796
5220
|
"optional": true,
|
|
4797
5221
|
"type": {
|
|
4798
|
-
"
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
5222
|
+
"primitive": "string"
|
|
5223
|
+
}
|
|
5224
|
+
},
|
|
5225
|
+
"static": true
|
|
5226
|
+
},
|
|
5227
|
+
{
|
|
5228
|
+
"docs": {
|
|
5229
|
+
"stability": "stable",
|
|
5230
|
+
"summary": "First try to find to module, then install it to a temporary location."
|
|
5231
|
+
},
|
|
5232
|
+
"locationInModule": {
|
|
5233
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5234
|
+
"line": 58
|
|
5235
|
+
},
|
|
5236
|
+
"name": "auto",
|
|
5237
|
+
"returns": {
|
|
5238
|
+
"type": {
|
|
5239
|
+
"primitive": "string"
|
|
5240
|
+
}
|
|
5241
|
+
},
|
|
5242
|
+
"static": true
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"docs": {
|
|
5246
|
+
"stability": "stable",
|
|
5247
|
+
"summary": "Try to find the module in common global installation paths."
|
|
5248
|
+
},
|
|
5249
|
+
"locationInModule": {
|
|
5250
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5251
|
+
"line": 37
|
|
5252
|
+
},
|
|
5253
|
+
"name": "globalPaths",
|
|
5254
|
+
"returns": {
|
|
5255
|
+
"optional": true,
|
|
5256
|
+
"type": {
|
|
5257
|
+
"primitive": "string"
|
|
5258
|
+
}
|
|
5259
|
+
},
|
|
5260
|
+
"static": true
|
|
5261
|
+
},
|
|
5262
|
+
{
|
|
5263
|
+
"docs": {
|
|
5264
|
+
"stability": "stable",
|
|
5265
|
+
"summary": "Install the module to a temporary location."
|
|
5266
|
+
},
|
|
5267
|
+
"locationInModule": {
|
|
5268
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5269
|
+
"line": 51
|
|
5270
|
+
},
|
|
5271
|
+
"name": "install",
|
|
5272
|
+
"returns": {
|
|
5273
|
+
"type": {
|
|
5274
|
+
"primitive": "string"
|
|
5275
|
+
}
|
|
5276
|
+
},
|
|
5277
|
+
"static": true
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
"docs": {
|
|
5281
|
+
"stability": "stable",
|
|
5282
|
+
"summary": "Require module by name, do not attempt to find it anywhere else."
|
|
5283
|
+
},
|
|
5284
|
+
"locationInModule": {
|
|
5285
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5286
|
+
"line": 44
|
|
5287
|
+
},
|
|
5288
|
+
"name": "nodeJs",
|
|
5289
|
+
"returns": {
|
|
5290
|
+
"type": {
|
|
5291
|
+
"primitive": "string"
|
|
5292
|
+
}
|
|
5293
|
+
},
|
|
5294
|
+
"static": true
|
|
5295
|
+
},
|
|
5296
|
+
{
|
|
5297
|
+
"docs": {
|
|
5298
|
+
"stability": "stable",
|
|
5299
|
+
"summary": "`EsbuildSource.nodeJs()` for NodeJs, `EsbuildSource.auto()` for all other languages."
|
|
5300
|
+
},
|
|
5301
|
+
"locationInModule": {
|
|
5302
|
+
"filename": "src/private/esbuild-source.ts",
|
|
5303
|
+
"line": 19
|
|
5304
|
+
},
|
|
5305
|
+
"name": "platformDefault",
|
|
5306
|
+
"returns": {
|
|
5307
|
+
"type": {
|
|
5308
|
+
"primitive": "string"
|
|
5309
|
+
}
|
|
5310
|
+
},
|
|
5311
|
+
"static": true
|
|
5312
|
+
}
|
|
5313
|
+
],
|
|
5314
|
+
"name": "EsbuildSource",
|
|
5315
|
+
"symbolId": "src/private/esbuild-source:EsbuildSource"
|
|
5316
|
+
},
|
|
5317
|
+
"@mrgrain/cdk-esbuild.IBuildProvider": {
|
|
5318
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5319
|
+
"docs": {
|
|
5320
|
+
"stability": "stable",
|
|
5321
|
+
"summary": "Provides an implementation of the esbuild Build API."
|
|
5322
|
+
},
|
|
5323
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider",
|
|
5324
|
+
"kind": "interface",
|
|
5325
|
+
"locationInModule": {
|
|
5326
|
+
"filename": "src/provider.ts",
|
|
5327
|
+
"line": 20
|
|
5328
|
+
},
|
|
5329
|
+
"methods": [
|
|
5330
|
+
{
|
|
5331
|
+
"abstract": true,
|
|
5332
|
+
"docs": {
|
|
5333
|
+
"custom": {
|
|
5334
|
+
"throws": "`esbuild.BuildFailure`"
|
|
5335
|
+
},
|
|
5336
|
+
"remarks": "During synth time, the method will receive all computed `BuildOptions` from the bundler.\n\nIt MUST implement any output options to integrate correctly and MAY use any other options.\nOn failure, it SHOULD print any warnings & errors to stderr and throw a `BuildFailure` to inform the bundler.",
|
|
5337
|
+
"stability": "stable",
|
|
5338
|
+
"summary": "A method implementing the code build."
|
|
5339
|
+
},
|
|
5340
|
+
"locationInModule": {
|
|
5341
|
+
"filename": "src/provider.ts",
|
|
5342
|
+
"line": 31
|
|
5343
|
+
},
|
|
5344
|
+
"name": "buildSync",
|
|
5345
|
+
"parameters": [
|
|
5346
|
+
{
|
|
5347
|
+
"name": "options",
|
|
5348
|
+
"type": {
|
|
5349
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderBuildOptions"
|
|
5350
|
+
}
|
|
5351
|
+
}
|
|
5352
|
+
]
|
|
5353
|
+
}
|
|
5354
|
+
],
|
|
5355
|
+
"name": "IBuildProvider",
|
|
5356
|
+
"symbolId": "src/provider:IBuildProvider"
|
|
5357
|
+
},
|
|
5358
|
+
"@mrgrain/cdk-esbuild.IEsbuildProvider": {
|
|
5359
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5360
|
+
"docs": {
|
|
5361
|
+
"stability": "stable",
|
|
5362
|
+
"summary": "Provides an implementation of the esbuild Build & Transform API."
|
|
5363
|
+
},
|
|
5364
|
+
"fqn": "@mrgrain/cdk-esbuild.IEsbuildProvider",
|
|
5365
|
+
"interfaces": [
|
|
5366
|
+
"@mrgrain/cdk-esbuild.IBuildProvider",
|
|
5367
|
+
"@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5368
|
+
],
|
|
5369
|
+
"kind": "interface",
|
|
5370
|
+
"locationInModule": {
|
|
5371
|
+
"filename": "src/provider.ts",
|
|
5372
|
+
"line": 55
|
|
5373
|
+
},
|
|
5374
|
+
"name": "IEsbuildProvider",
|
|
5375
|
+
"symbolId": "src/provider:IEsbuildProvider"
|
|
5376
|
+
},
|
|
5377
|
+
"@mrgrain/cdk-esbuild.ITransformProvider": {
|
|
5378
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5379
|
+
"docs": {
|
|
5380
|
+
"stability": "stable",
|
|
5381
|
+
"summary": "Provides an implementation of the esbuild Transform API."
|
|
5382
|
+
},
|
|
5383
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider",
|
|
5384
|
+
"kind": "interface",
|
|
5385
|
+
"locationInModule": {
|
|
5386
|
+
"filename": "src/provider.ts",
|
|
5387
|
+
"line": 37
|
|
5388
|
+
},
|
|
5389
|
+
"methods": [
|
|
5390
|
+
{
|
|
5391
|
+
"abstract": true,
|
|
5392
|
+
"docs": {
|
|
5393
|
+
"custom": {
|
|
5394
|
+
"throws": "`esbuild.TransformFailure`"
|
|
5395
|
+
},
|
|
5396
|
+
"remarks": "During synth time, the method will receive the inline code and all computed `TransformOptions` from the bundler.\n\nMUST return the transformed code as a string to integrate correctly.\nIt MAY use these options to do so.\nOn failure, it SHOULD print any warnings & errors to stderr and throw a `TransformFailure` to inform the bundler.",
|
|
5397
|
+
"stability": "stable",
|
|
5398
|
+
"summary": "A method implementing the inline code transformation."
|
|
5399
|
+
},
|
|
5400
|
+
"locationInModule": {
|
|
5401
|
+
"filename": "src/provider.ts",
|
|
5402
|
+
"line": 49
|
|
5403
|
+
},
|
|
5404
|
+
"name": "transformSync",
|
|
5405
|
+
"parameters": [
|
|
5406
|
+
{
|
|
5407
|
+
"name": "input",
|
|
5408
|
+
"type": {
|
|
5409
|
+
"primitive": "string"
|
|
4807
5410
|
}
|
|
5411
|
+
},
|
|
5412
|
+
{
|
|
5413
|
+
"name": "options",
|
|
5414
|
+
"optional": true,
|
|
5415
|
+
"type": {
|
|
5416
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderTransformOptions"
|
|
5417
|
+
}
|
|
5418
|
+
}
|
|
5419
|
+
],
|
|
5420
|
+
"returns": {
|
|
5421
|
+
"type": {
|
|
5422
|
+
"primitive": "string"
|
|
5423
|
+
}
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
],
|
|
5427
|
+
"name": "ITransformProvider",
|
|
5428
|
+
"symbolId": "src/provider:ITransformProvider"
|
|
5429
|
+
},
|
|
5430
|
+
"@mrgrain/cdk-esbuild.InlineJavaScriptCode": {
|
|
5431
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
5432
|
+
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5433
|
+
"docs": {
|
|
5434
|
+
"stability": "stable",
|
|
5435
|
+
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
5436
|
+
},
|
|
5437
|
+
"fqn": "@mrgrain/cdk-esbuild.InlineJavaScriptCode",
|
|
5438
|
+
"initializer": {
|
|
5439
|
+
"docs": {
|
|
5440
|
+
"stability": "stable"
|
|
5441
|
+
},
|
|
5442
|
+
"locationInModule": {
|
|
5443
|
+
"filename": "src/inline-code.ts",
|
|
5444
|
+
"line": 93
|
|
5445
|
+
},
|
|
5446
|
+
"parameters": [
|
|
5447
|
+
{
|
|
5448
|
+
"docs": {
|
|
5449
|
+
"stability": "stable",
|
|
5450
|
+
"summary": "The inline code to be transformed."
|
|
5451
|
+
},
|
|
5452
|
+
"name": "code",
|
|
5453
|
+
"type": {
|
|
5454
|
+
"primitive": "string"
|
|
5455
|
+
}
|
|
5456
|
+
},
|
|
5457
|
+
{
|
|
5458
|
+
"docs": {
|
|
5459
|
+
"remarks": "Default values for `props.transformOptions`:\n- `loader='js'`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
5460
|
+
"see": "https://esbuild.github.io/api/#transform-api",
|
|
5461
|
+
"stability": "stable",
|
|
5462
|
+
"summary": "Props to change the behavior of the transformer."
|
|
5463
|
+
},
|
|
5464
|
+
"name": "props",
|
|
5465
|
+
"optional": true,
|
|
5466
|
+
"type": {
|
|
5467
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4808
5468
|
}
|
|
4809
5469
|
}
|
|
4810
5470
|
]
|
|
@@ -4812,31 +5472,76 @@
|
|
|
4812
5472
|
"kind": "class",
|
|
4813
5473
|
"locationInModule": {
|
|
4814
5474
|
"filename": "src/inline-code.ts",
|
|
4815
|
-
"line":
|
|
5475
|
+
"line": 92
|
|
4816
5476
|
},
|
|
4817
|
-
"
|
|
4818
|
-
|
|
5477
|
+
"methods": [
|
|
5478
|
+
{
|
|
5479
|
+
"docs": {
|
|
5480
|
+
"stability": "stable",
|
|
5481
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
5482
|
+
},
|
|
5483
|
+
"locationInModule": {
|
|
5484
|
+
"filename": "src/inline-code.ts",
|
|
5485
|
+
"line": 65
|
|
5486
|
+
},
|
|
5487
|
+
"name": "bind",
|
|
5488
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5489
|
+
"parameters": [
|
|
5490
|
+
{
|
|
5491
|
+
"name": "scope",
|
|
5492
|
+
"type": {
|
|
5493
|
+
"fqn": "constructs.Construct"
|
|
5494
|
+
}
|
|
5495
|
+
}
|
|
5496
|
+
],
|
|
5497
|
+
"returns": {
|
|
5498
|
+
"type": {
|
|
5499
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5502
|
+
}
|
|
5503
|
+
],
|
|
5504
|
+
"name": "InlineJavaScriptCode",
|
|
5505
|
+
"properties": [
|
|
5506
|
+
{
|
|
5507
|
+
"docs": {
|
|
5508
|
+
"stability": "stable",
|
|
5509
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
5510
|
+
},
|
|
5511
|
+
"immutable": true,
|
|
5512
|
+
"locationInModule": {
|
|
5513
|
+
"filename": "src/inline-code.ts",
|
|
5514
|
+
"line": 34
|
|
5515
|
+
},
|
|
5516
|
+
"name": "isInline",
|
|
5517
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5518
|
+
"type": {
|
|
5519
|
+
"primitive": "boolean"
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
],
|
|
5523
|
+
"symbolId": "src/inline-code:InlineJavaScriptCode"
|
|
4819
5524
|
},
|
|
4820
5525
|
"@mrgrain/cdk-esbuild.InlineTypeScriptCode": {
|
|
4821
5526
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4822
5527
|
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4823
5528
|
"docs": {
|
|
4824
|
-
"stability": "
|
|
5529
|
+
"stability": "stable",
|
|
4825
5530
|
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4826
5531
|
},
|
|
4827
5532
|
"fqn": "@mrgrain/cdk-esbuild.InlineTypeScriptCode",
|
|
4828
5533
|
"initializer": {
|
|
4829
5534
|
"docs": {
|
|
4830
|
-
"stability": "
|
|
5535
|
+
"stability": "stable"
|
|
4831
5536
|
},
|
|
4832
5537
|
"locationInModule": {
|
|
4833
5538
|
"filename": "src/inline-code.ts",
|
|
4834
|
-
"line":
|
|
5539
|
+
"line": 124
|
|
4835
5540
|
},
|
|
4836
5541
|
"parameters": [
|
|
4837
5542
|
{
|
|
4838
5543
|
"docs": {
|
|
4839
|
-
"stability": "
|
|
5544
|
+
"stability": "stable",
|
|
4840
5545
|
"summary": "The inline code to be transformed."
|
|
4841
5546
|
},
|
|
4842
5547
|
"name": "code",
|
|
@@ -4846,34 +5551,70 @@
|
|
|
4846
5551
|
},
|
|
4847
5552
|
{
|
|
4848
5553
|
"docs": {
|
|
4849
|
-
"remarks": "
|
|
5554
|
+
"remarks": "Default values for `transformOptions`:\n- `loader='ts'`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4850
5555
|
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4851
|
-
"stability": "
|
|
4852
|
-
"summary": "
|
|
5556
|
+
"stability": "stable",
|
|
5557
|
+
"summary": "Props to change the behavior of the transformer."
|
|
4853
5558
|
},
|
|
4854
5559
|
"name": "props",
|
|
4855
5560
|
"optional": true,
|
|
4856
5561
|
"type": {
|
|
4857
|
-
"
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
5562
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
5563
|
+
}
|
|
5564
|
+
}
|
|
5565
|
+
]
|
|
5566
|
+
},
|
|
5567
|
+
"kind": "class",
|
|
5568
|
+
"locationInModule": {
|
|
5569
|
+
"filename": "src/inline-code.ts",
|
|
5570
|
+
"line": 123
|
|
5571
|
+
},
|
|
5572
|
+
"methods": [
|
|
5573
|
+
{
|
|
5574
|
+
"docs": {
|
|
5575
|
+
"stability": "stable",
|
|
5576
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
5577
|
+
},
|
|
5578
|
+
"locationInModule": {
|
|
5579
|
+
"filename": "src/inline-code.ts",
|
|
5580
|
+
"line": 65
|
|
5581
|
+
},
|
|
5582
|
+
"name": "bind",
|
|
5583
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5584
|
+
"parameters": [
|
|
5585
|
+
{
|
|
5586
|
+
"name": "scope",
|
|
5587
|
+
"type": {
|
|
5588
|
+
"fqn": "constructs.Construct"
|
|
4866
5589
|
}
|
|
4867
5590
|
}
|
|
5591
|
+
],
|
|
5592
|
+
"returns": {
|
|
5593
|
+
"type": {
|
|
5594
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
5595
|
+
}
|
|
4868
5596
|
}
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
"kind": "class",
|
|
4872
|
-
"locationInModule": {
|
|
4873
|
-
"filename": "src/inline-code.ts",
|
|
4874
|
-
"line": 144
|
|
4875
|
-
},
|
|
5597
|
+
}
|
|
5598
|
+
],
|
|
4876
5599
|
"name": "InlineTypeScriptCode",
|
|
5600
|
+
"properties": [
|
|
5601
|
+
{
|
|
5602
|
+
"docs": {
|
|
5603
|
+
"stability": "stable",
|
|
5604
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
5605
|
+
},
|
|
5606
|
+
"immutable": true,
|
|
5607
|
+
"locationInModule": {
|
|
5608
|
+
"filename": "src/inline-code.ts",
|
|
5609
|
+
"line": 34
|
|
5610
|
+
},
|
|
5611
|
+
"name": "isInline",
|
|
5612
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5613
|
+
"type": {
|
|
5614
|
+
"primitive": "boolean"
|
|
5615
|
+
}
|
|
5616
|
+
}
|
|
5617
|
+
],
|
|
4877
5618
|
"symbolId": "src/inline-code:InlineTypeScriptCode"
|
|
4878
5619
|
},
|
|
4879
5620
|
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
@@ -4891,7 +5632,7 @@
|
|
|
4891
5632
|
},
|
|
4892
5633
|
"locationInModule": {
|
|
4893
5634
|
"filename": "src/asset.ts",
|
|
4894
|
-
"line":
|
|
5635
|
+
"line": 57
|
|
4895
5636
|
},
|
|
4896
5637
|
"parameters": [
|
|
4897
5638
|
{
|
|
@@ -4917,7 +5658,7 @@
|
|
|
4917
5658
|
"kind": "class",
|
|
4918
5659
|
"locationInModule": {
|
|
4919
5660
|
"filename": "src/asset.ts",
|
|
4920
|
-
"line":
|
|
5661
|
+
"line": 126
|
|
4921
5662
|
},
|
|
4922
5663
|
"name": "JavaScriptAsset",
|
|
4923
5664
|
"symbolId": "src/asset:JavaScriptAsset"
|
|
@@ -4936,14 +5677,14 @@
|
|
|
4936
5677
|
},
|
|
4937
5678
|
"locationInModule": {
|
|
4938
5679
|
"filename": "src/code.ts",
|
|
4939
|
-
"line":
|
|
5680
|
+
"line": 145
|
|
4940
5681
|
},
|
|
4941
5682
|
"parameters": [
|
|
4942
5683
|
{
|
|
4943
5684
|
"docs": {
|
|
4944
|
-
"remarks": "
|
|
5685
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4945
5686
|
"stability": "stable",
|
|
4946
|
-
"summary": "A
|
|
5687
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4947
5688
|
},
|
|
4948
5689
|
"name": "entryPoints",
|
|
4949
5690
|
"type": {
|
|
@@ -4989,7 +5730,7 @@
|
|
|
4989
5730
|
"kind": "class",
|
|
4990
5731
|
"locationInModule": {
|
|
4991
5732
|
"filename": "src/code.ts",
|
|
4992
|
-
"line":
|
|
5733
|
+
"line": 136
|
|
4993
5734
|
},
|
|
4994
5735
|
"methods": [
|
|
4995
5736
|
{
|
|
@@ -4998,7 +5739,7 @@
|
|
|
4998
5739
|
},
|
|
4999
5740
|
"locationInModule": {
|
|
5000
5741
|
"filename": "src/code.ts",
|
|
5001
|
-
"line":
|
|
5742
|
+
"line": 137
|
|
5002
5743
|
},
|
|
5003
5744
|
"name": "getAsset",
|
|
5004
5745
|
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
@@ -5034,7 +5775,7 @@
|
|
|
5034
5775
|
"kind": "interface",
|
|
5035
5776
|
"locationInModule": {
|
|
5036
5777
|
"filename": "src/code.ts",
|
|
5037
|
-
"line":
|
|
5778
|
+
"line": 16
|
|
5038
5779
|
},
|
|
5039
5780
|
"name": "JavaScriptCodeProps",
|
|
5040
5781
|
"properties": [
|
|
@@ -5071,10 +5812,15 @@
|
|
|
5071
5812
|
},
|
|
5072
5813
|
"locationInModule": {
|
|
5073
5814
|
"filename": "src/source.ts",
|
|
5074
|
-
"line":
|
|
5815
|
+
"line": 113
|
|
5075
5816
|
},
|
|
5076
5817
|
"parameters": [
|
|
5077
5818
|
{
|
|
5819
|
+
"docs": {
|
|
5820
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
5821
|
+
"stability": "stable",
|
|
5822
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
5823
|
+
},
|
|
5078
5824
|
"name": "entryPoints",
|
|
5079
5825
|
"type": {
|
|
5080
5826
|
"union": {
|
|
@@ -5103,6 +5849,11 @@
|
|
|
5103
5849
|
}
|
|
5104
5850
|
},
|
|
5105
5851
|
{
|
|
5852
|
+
"docs": {
|
|
5853
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=browser`",
|
|
5854
|
+
"stability": "stable",
|
|
5855
|
+
"summary": "Props to change the behavior of the bundler."
|
|
5856
|
+
},
|
|
5106
5857
|
"name": "props",
|
|
5107
5858
|
"optional": true,
|
|
5108
5859
|
"type": {
|
|
@@ -5117,7 +5868,7 @@
|
|
|
5117
5868
|
"kind": "class",
|
|
5118
5869
|
"locationInModule": {
|
|
5119
5870
|
"filename": "src/source.ts",
|
|
5120
|
-
"line":
|
|
5871
|
+
"line": 107
|
|
5121
5872
|
},
|
|
5122
5873
|
"methods": [
|
|
5123
5874
|
{
|
|
@@ -5127,7 +5878,7 @@
|
|
|
5127
5878
|
},
|
|
5128
5879
|
"locationInModule": {
|
|
5129
5880
|
"filename": "src/source.ts",
|
|
5130
|
-
"line":
|
|
5881
|
+
"line": 73
|
|
5131
5882
|
},
|
|
5132
5883
|
"name": "bind",
|
|
5133
5884
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -5184,7 +5935,7 @@
|
|
|
5184
5935
|
},
|
|
5185
5936
|
"locationInModule": {
|
|
5186
5937
|
"filename": "src/source.ts",
|
|
5187
|
-
"line":
|
|
5938
|
+
"line": 111
|
|
5188
5939
|
},
|
|
5189
5940
|
"name": "assetClass",
|
|
5190
5941
|
"type": {
|
|
@@ -5246,6 +5997,80 @@
|
|
|
5246
5997
|
],
|
|
5247
5998
|
"symbolId": "src/source:JavaScriptSourceProps"
|
|
5248
5999
|
},
|
|
6000
|
+
"@mrgrain/cdk-esbuild.ProviderBuildOptions": {
|
|
6001
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
6002
|
+
"datatype": true,
|
|
6003
|
+
"docs": {
|
|
6004
|
+
"stability": "stable"
|
|
6005
|
+
},
|
|
6006
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderBuildOptions",
|
|
6007
|
+
"interfaces": [
|
|
6008
|
+
"@mrgrain/cdk-esbuild.BuildOptions"
|
|
6009
|
+
],
|
|
6010
|
+
"kind": "interface",
|
|
6011
|
+
"locationInModule": {
|
|
6012
|
+
"filename": "src/provider.ts",
|
|
6013
|
+
"line": 9
|
|
6014
|
+
},
|
|
6015
|
+
"name": "ProviderBuildOptions",
|
|
6016
|
+
"properties": [
|
|
6017
|
+
{
|
|
6018
|
+
"abstract": true,
|
|
6019
|
+
"docs": {
|
|
6020
|
+
"stability": "stable",
|
|
6021
|
+
"summary": "Documentation: https://esbuild.github.io/api/#entry-points."
|
|
6022
|
+
},
|
|
6023
|
+
"immutable": true,
|
|
6024
|
+
"locationInModule": {
|
|
6025
|
+
"filename": "src/provider.ts",
|
|
6026
|
+
"line": 11
|
|
6027
|
+
},
|
|
6028
|
+
"name": "entryPoints",
|
|
6029
|
+
"optional": true,
|
|
6030
|
+
"type": {
|
|
6031
|
+
"union": {
|
|
6032
|
+
"types": [
|
|
6033
|
+
{
|
|
6034
|
+
"collection": {
|
|
6035
|
+
"elementtype": {
|
|
6036
|
+
"primitive": "string"
|
|
6037
|
+
},
|
|
6038
|
+
"kind": "array"
|
|
6039
|
+
}
|
|
6040
|
+
},
|
|
6041
|
+
{
|
|
6042
|
+
"collection": {
|
|
6043
|
+
"elementtype": {
|
|
6044
|
+
"primitive": "string"
|
|
6045
|
+
},
|
|
6046
|
+
"kind": "map"
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
]
|
|
6050
|
+
}
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
],
|
|
6054
|
+
"symbolId": "src/provider:ProviderBuildOptions"
|
|
6055
|
+
},
|
|
6056
|
+
"@mrgrain/cdk-esbuild.ProviderTransformOptions": {
|
|
6057
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
6058
|
+
"datatype": true,
|
|
6059
|
+
"docs": {
|
|
6060
|
+
"stability": "stable"
|
|
6061
|
+
},
|
|
6062
|
+
"fqn": "@mrgrain/cdk-esbuild.ProviderTransformOptions",
|
|
6063
|
+
"interfaces": [
|
|
6064
|
+
"@mrgrain/cdk-esbuild.TransformOptions"
|
|
6065
|
+
],
|
|
6066
|
+
"kind": "interface",
|
|
6067
|
+
"locationInModule": {
|
|
6068
|
+
"filename": "src/provider.ts",
|
|
6069
|
+
"line": 14
|
|
6070
|
+
},
|
|
6071
|
+
"name": "ProviderTransformOptions",
|
|
6072
|
+
"symbolId": "src/provider:ProviderTransformOptions"
|
|
6073
|
+
},
|
|
5249
6074
|
"@mrgrain/cdk-esbuild.TransformOptions": {
|
|
5250
6075
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5251
6076
|
"datatype": true,
|
|
@@ -5256,7 +6081,7 @@
|
|
|
5256
6081
|
"kind": "interface",
|
|
5257
6082
|
"locationInModule": {
|
|
5258
6083
|
"filename": "src/esbuild-types.ts",
|
|
5259
|
-
"line":
|
|
6084
|
+
"line": 250
|
|
5260
6085
|
},
|
|
5261
6086
|
"name": "TransformOptions",
|
|
5262
6087
|
"properties": [
|
|
@@ -5268,7 +6093,7 @@
|
|
|
5268
6093
|
"immutable": true,
|
|
5269
6094
|
"locationInModule": {
|
|
5270
6095
|
"filename": "src/esbuild-types.ts",
|
|
5271
|
-
"line":
|
|
6096
|
+
"line": 255
|
|
5272
6097
|
},
|
|
5273
6098
|
"name": "banner",
|
|
5274
6099
|
"optional": true,
|
|
@@ -5285,7 +6110,7 @@
|
|
|
5285
6110
|
"immutable": true,
|
|
5286
6111
|
"locationInModule": {
|
|
5287
6112
|
"filename": "src/esbuild-types.ts",
|
|
5288
|
-
"line":
|
|
6113
|
+
"line": 50
|
|
5289
6114
|
},
|
|
5290
6115
|
"name": "charset",
|
|
5291
6116
|
"optional": true,
|
|
@@ -5302,7 +6127,7 @@
|
|
|
5302
6127
|
"immutable": true,
|
|
5303
6128
|
"locationInModule": {
|
|
5304
6129
|
"filename": "src/esbuild-types.ts",
|
|
5305
|
-
"line":
|
|
6130
|
+
"line": 77
|
|
5306
6131
|
},
|
|
5307
6132
|
"name": "color",
|
|
5308
6133
|
"optional": true,
|
|
@@ -5319,7 +6144,7 @@
|
|
|
5319
6144
|
"immutable": true,
|
|
5320
6145
|
"locationInModule": {
|
|
5321
6146
|
"filename": "src/esbuild-types.ts",
|
|
5322
|
-
"line":
|
|
6147
|
+
"line": 70
|
|
5323
6148
|
},
|
|
5324
6149
|
"name": "define",
|
|
5325
6150
|
"optional": true,
|
|
@@ -5341,7 +6166,7 @@
|
|
|
5341
6166
|
"immutable": true,
|
|
5342
6167
|
"locationInModule": {
|
|
5343
6168
|
"filename": "src/esbuild-types.ts",
|
|
5344
|
-
"line":
|
|
6169
|
+
"line": 40
|
|
5345
6170
|
},
|
|
5346
6171
|
"name": "drop",
|
|
5347
6172
|
"optional": true,
|
|
@@ -5362,7 +6187,7 @@
|
|
|
5362
6187
|
"immutable": true,
|
|
5363
6188
|
"locationInModule": {
|
|
5364
6189
|
"filename": "src/esbuild-types.ts",
|
|
5365
|
-
"line":
|
|
6190
|
+
"line": 256
|
|
5366
6191
|
},
|
|
5367
6192
|
"name": "footer",
|
|
5368
6193
|
"optional": true,
|
|
@@ -5391,7 +6216,7 @@
|
|
|
5391
6216
|
"abstract": true,
|
|
5392
6217
|
"docs": {
|
|
5393
6218
|
"stability": "stable",
|
|
5394
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
6219
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
5395
6220
|
},
|
|
5396
6221
|
"immutable": true,
|
|
5397
6222
|
"locationInModule": {
|
|
@@ -5413,7 +6238,7 @@
|
|
|
5413
6238
|
"immutable": true,
|
|
5414
6239
|
"locationInModule": {
|
|
5415
6240
|
"filename": "src/esbuild-types.ts",
|
|
5416
|
-
"line":
|
|
6241
|
+
"line": 54
|
|
5417
6242
|
},
|
|
5418
6243
|
"name": "ignoreAnnotations",
|
|
5419
6244
|
"optional": true,
|
|
@@ -5430,7 +6255,7 @@
|
|
|
5430
6255
|
"immutable": true,
|
|
5431
6256
|
"locationInModule": {
|
|
5432
6257
|
"filename": "src/esbuild-types.ts",
|
|
5433
|
-
"line":
|
|
6258
|
+
"line": 57
|
|
5434
6259
|
},
|
|
5435
6260
|
"name": "jsx",
|
|
5436
6261
|
"optional": true,
|
|
@@ -5438,6 +6263,23 @@
|
|
|
5438
6263
|
"primitive": "string"
|
|
5439
6264
|
}
|
|
5440
6265
|
},
|
|
6266
|
+
{
|
|
6267
|
+
"abstract": true,
|
|
6268
|
+
"docs": {
|
|
6269
|
+
"stability": "stable",
|
|
6270
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-development."
|
|
6271
|
+
},
|
|
6272
|
+
"immutable": true,
|
|
6273
|
+
"locationInModule": {
|
|
6274
|
+
"filename": "src/esbuild-types.ts",
|
|
6275
|
+
"line": 65
|
|
6276
|
+
},
|
|
6277
|
+
"name": "jsxDev",
|
|
6278
|
+
"optional": true,
|
|
6279
|
+
"type": {
|
|
6280
|
+
"primitive": "boolean"
|
|
6281
|
+
}
|
|
6282
|
+
},
|
|
5441
6283
|
{
|
|
5442
6284
|
"abstract": true,
|
|
5443
6285
|
"docs": {
|
|
@@ -5447,7 +6289,7 @@
|
|
|
5447
6289
|
"immutable": true,
|
|
5448
6290
|
"locationInModule": {
|
|
5449
6291
|
"filename": "src/esbuild-types.ts",
|
|
5450
|
-
"line":
|
|
6292
|
+
"line": 59
|
|
5451
6293
|
},
|
|
5452
6294
|
"name": "jsxFactory",
|
|
5453
6295
|
"optional": true,
|
|
@@ -5464,7 +6306,7 @@
|
|
|
5464
6306
|
"immutable": true,
|
|
5465
6307
|
"locationInModule": {
|
|
5466
6308
|
"filename": "src/esbuild-types.ts",
|
|
5467
|
-
"line":
|
|
6309
|
+
"line": 61
|
|
5468
6310
|
},
|
|
5469
6311
|
"name": "jsxFragment",
|
|
5470
6312
|
"optional": true,
|
|
@@ -5472,6 +6314,40 @@
|
|
|
5472
6314
|
"primitive": "string"
|
|
5473
6315
|
}
|
|
5474
6316
|
},
|
|
6317
|
+
{
|
|
6318
|
+
"abstract": true,
|
|
6319
|
+
"docs": {
|
|
6320
|
+
"stability": "stable",
|
|
6321
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-import-source."
|
|
6322
|
+
},
|
|
6323
|
+
"immutable": true,
|
|
6324
|
+
"locationInModule": {
|
|
6325
|
+
"filename": "src/esbuild-types.ts",
|
|
6326
|
+
"line": 63
|
|
6327
|
+
},
|
|
6328
|
+
"name": "jsxImportSource",
|
|
6329
|
+
"optional": true,
|
|
6330
|
+
"type": {
|
|
6331
|
+
"primitive": "string"
|
|
6332
|
+
}
|
|
6333
|
+
},
|
|
6334
|
+
{
|
|
6335
|
+
"abstract": true,
|
|
6336
|
+
"docs": {
|
|
6337
|
+
"stability": "stable",
|
|
6338
|
+
"summary": "Documentation: https://esbuild.github.io/api/#jsx-side-effects."
|
|
6339
|
+
},
|
|
6340
|
+
"immutable": true,
|
|
6341
|
+
"locationInModule": {
|
|
6342
|
+
"filename": "src/esbuild-types.ts",
|
|
6343
|
+
"line": 67
|
|
6344
|
+
},
|
|
6345
|
+
"name": "jsxSideEffects",
|
|
6346
|
+
"optional": true,
|
|
6347
|
+
"type": {
|
|
6348
|
+
"primitive": "boolean"
|
|
6349
|
+
}
|
|
6350
|
+
},
|
|
5475
6351
|
{
|
|
5476
6352
|
"abstract": true,
|
|
5477
6353
|
"docs": {
|
|
@@ -5481,7 +6357,7 @@
|
|
|
5481
6357
|
"immutable": true,
|
|
5482
6358
|
"locationInModule": {
|
|
5483
6359
|
"filename": "src/esbuild-types.ts",
|
|
5484
|
-
"line":
|
|
6360
|
+
"line": 74
|
|
5485
6361
|
},
|
|
5486
6362
|
"name": "keepNames",
|
|
5487
6363
|
"optional": true,
|
|
@@ -5514,7 +6390,7 @@
|
|
|
5514
6390
|
"immutable": true,
|
|
5515
6391
|
"locationInModule": {
|
|
5516
6392
|
"filename": "src/esbuild-types.ts",
|
|
5517
|
-
"line":
|
|
6393
|
+
"line": 254
|
|
5518
6394
|
},
|
|
5519
6395
|
"name": "loader",
|
|
5520
6396
|
"optional": true,
|
|
@@ -5531,7 +6407,7 @@
|
|
|
5531
6407
|
"immutable": true,
|
|
5532
6408
|
"locationInModule": {
|
|
5533
6409
|
"filename": "src/esbuild-types.ts",
|
|
5534
|
-
"line":
|
|
6410
|
+
"line": 79
|
|
5535
6411
|
},
|
|
5536
6412
|
"name": "logLevel",
|
|
5537
6413
|
"optional": true,
|
|
@@ -5548,7 +6424,7 @@
|
|
|
5548
6424
|
"immutable": true,
|
|
5549
6425
|
"locationInModule": {
|
|
5550
6426
|
"filename": "src/esbuild-types.ts",
|
|
5551
|
-
"line":
|
|
6427
|
+
"line": 81
|
|
5552
6428
|
},
|
|
5553
6429
|
"name": "logLimit",
|
|
5554
6430
|
"optional": true,
|
|
@@ -5565,7 +6441,7 @@
|
|
|
5565
6441
|
"immutable": true,
|
|
5566
6442
|
"locationInModule": {
|
|
5567
6443
|
"filename": "src/esbuild-types.ts",
|
|
5568
|
-
"line":
|
|
6444
|
+
"line": 83
|
|
5569
6445
|
},
|
|
5570
6446
|
"name": "logOverride",
|
|
5571
6447
|
"optional": true,
|
|
@@ -5587,7 +6463,7 @@
|
|
|
5587
6463
|
"immutable": true,
|
|
5588
6464
|
"locationInModule": {
|
|
5589
6465
|
"filename": "src/esbuild-types.ts",
|
|
5590
|
-
"line":
|
|
6466
|
+
"line": 38
|
|
5591
6467
|
},
|
|
5592
6468
|
"name": "mangleCache",
|
|
5593
6469
|
"optional": true,
|
|
@@ -5618,7 +6494,7 @@
|
|
|
5618
6494
|
"immutable": true,
|
|
5619
6495
|
"locationInModule": {
|
|
5620
6496
|
"filename": "src/esbuild-types.ts",
|
|
5621
|
-
"line":
|
|
6497
|
+
"line": 32
|
|
5622
6498
|
},
|
|
5623
6499
|
"name": "mangleProps",
|
|
5624
6500
|
"optional": true,
|
|
@@ -5635,7 +6511,7 @@
|
|
|
5635
6511
|
"immutable": true,
|
|
5636
6512
|
"locationInModule": {
|
|
5637
6513
|
"filename": "src/esbuild-types.ts",
|
|
5638
|
-
"line":
|
|
6514
|
+
"line": 36
|
|
5639
6515
|
},
|
|
5640
6516
|
"name": "mangleQuoted",
|
|
5641
6517
|
"optional": true,
|
|
@@ -5652,7 +6528,7 @@
|
|
|
5652
6528
|
"immutable": true,
|
|
5653
6529
|
"locationInModule": {
|
|
5654
6530
|
"filename": "src/esbuild-types.ts",
|
|
5655
|
-
"line":
|
|
6531
|
+
"line": 42
|
|
5656
6532
|
},
|
|
5657
6533
|
"name": "minify",
|
|
5658
6534
|
"optional": true,
|
|
@@ -5669,7 +6545,7 @@
|
|
|
5669
6545
|
"immutable": true,
|
|
5670
6546
|
"locationInModule": {
|
|
5671
6547
|
"filename": "src/esbuild-types.ts",
|
|
5672
|
-
"line":
|
|
6548
|
+
"line": 46
|
|
5673
6549
|
},
|
|
5674
6550
|
"name": "minifyIdentifiers",
|
|
5675
6551
|
"optional": true,
|
|
@@ -5686,7 +6562,7 @@
|
|
|
5686
6562
|
"immutable": true,
|
|
5687
6563
|
"locationInModule": {
|
|
5688
6564
|
"filename": "src/esbuild-types.ts",
|
|
5689
|
-
"line":
|
|
6565
|
+
"line": 48
|
|
5690
6566
|
},
|
|
5691
6567
|
"name": "minifySyntax",
|
|
5692
6568
|
"optional": true,
|
|
@@ -5703,7 +6579,7 @@
|
|
|
5703
6579
|
"immutable": true,
|
|
5704
6580
|
"locationInModule": {
|
|
5705
6581
|
"filename": "src/esbuild-types.ts",
|
|
5706
|
-
"line":
|
|
6582
|
+
"line": 44
|
|
5707
6583
|
},
|
|
5708
6584
|
"name": "minifyWhitespace",
|
|
5709
6585
|
"optional": true,
|
|
@@ -5711,6 +6587,23 @@
|
|
|
5711
6587
|
"primitive": "boolean"
|
|
5712
6588
|
}
|
|
5713
6589
|
},
|
|
6590
|
+
{
|
|
6591
|
+
"abstract": true,
|
|
6592
|
+
"docs": {
|
|
6593
|
+
"stability": "stable",
|
|
6594
|
+
"summary": "Documentation: https://esbuild.github.io/api/#platform."
|
|
6595
|
+
},
|
|
6596
|
+
"immutable": true,
|
|
6597
|
+
"locationInModule": {
|
|
6598
|
+
"filename": "src/esbuild-types.ts",
|
|
6599
|
+
"line": 29
|
|
6600
|
+
},
|
|
6601
|
+
"name": "platform",
|
|
6602
|
+
"optional": true,
|
|
6603
|
+
"type": {
|
|
6604
|
+
"primitive": "string"
|
|
6605
|
+
}
|
|
6606
|
+
},
|
|
5714
6607
|
{
|
|
5715
6608
|
"abstract": true,
|
|
5716
6609
|
"docs": {
|
|
@@ -5720,7 +6613,7 @@
|
|
|
5720
6613
|
"immutable": true,
|
|
5721
6614
|
"locationInModule": {
|
|
5722
6615
|
"filename": "src/esbuild-types.ts",
|
|
5723
|
-
"line":
|
|
6616
|
+
"line": 72
|
|
5724
6617
|
},
|
|
5725
6618
|
"name": "pure",
|
|
5726
6619
|
"optional": true,
|
|
@@ -5742,7 +6635,7 @@
|
|
|
5742
6635
|
"immutable": true,
|
|
5743
6636
|
"locationInModule": {
|
|
5744
6637
|
"filename": "src/esbuild-types.ts",
|
|
5745
|
-
"line":
|
|
6638
|
+
"line": 34
|
|
5746
6639
|
},
|
|
5747
6640
|
"name": "reserveProps",
|
|
5748
6641
|
"optional": true,
|
|
@@ -5758,7 +6651,7 @@
|
|
|
5758
6651
|
"immutable": true,
|
|
5759
6652
|
"locationInModule": {
|
|
5760
6653
|
"filename": "src/esbuild-types.ts",
|
|
5761
|
-
"line":
|
|
6654
|
+
"line": 253
|
|
5762
6655
|
},
|
|
5763
6656
|
"name": "sourcefile",
|
|
5764
6657
|
"optional": true,
|
|
@@ -5888,7 +6781,7 @@
|
|
|
5888
6781
|
"immutable": true,
|
|
5889
6782
|
"locationInModule": {
|
|
5890
6783
|
"filename": "src/esbuild-types.ts",
|
|
5891
|
-
"line":
|
|
6784
|
+
"line": 52
|
|
5892
6785
|
},
|
|
5893
6786
|
"name": "treeShaking",
|
|
5894
6787
|
"optional": true,
|
|
@@ -5904,12 +6797,21 @@
|
|
|
5904
6797
|
"immutable": true,
|
|
5905
6798
|
"locationInModule": {
|
|
5906
6799
|
"filename": "src/esbuild-types.ts",
|
|
5907
|
-
"line":
|
|
6800
|
+
"line": 251
|
|
5908
6801
|
},
|
|
5909
6802
|
"name": "tsconfigRaw",
|
|
5910
6803
|
"optional": true,
|
|
5911
6804
|
"type": {
|
|
5912
|
-
"
|
|
6805
|
+
"union": {
|
|
6806
|
+
"types": [
|
|
6807
|
+
{
|
|
6808
|
+
"primitive": "string"
|
|
6809
|
+
},
|
|
6810
|
+
{
|
|
6811
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigOptions"
|
|
6812
|
+
}
|
|
6813
|
+
]
|
|
6814
|
+
}
|
|
5913
6815
|
}
|
|
5914
6816
|
}
|
|
5915
6817
|
],
|
|
@@ -5919,62 +6821,90 @@
|
|
|
5919
6821
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5920
6822
|
"datatype": true,
|
|
5921
6823
|
"docs": {
|
|
5922
|
-
"stability": "
|
|
6824
|
+
"stability": "stable"
|
|
5923
6825
|
},
|
|
5924
6826
|
"fqn": "@mrgrain/cdk-esbuild.TransformerProps",
|
|
5925
6827
|
"kind": "interface",
|
|
5926
6828
|
"locationInModule": {
|
|
5927
6829
|
"filename": "src/inline-code.ts",
|
|
5928
|
-
"line":
|
|
6830
|
+
"line": 11
|
|
5929
6831
|
},
|
|
5930
6832
|
"name": "TransformerProps",
|
|
5931
6833
|
"properties": [
|
|
5932
6834
|
{
|
|
5933
6835
|
"abstract": true,
|
|
5934
6836
|
"docs": {
|
|
5935
|
-
"
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
"default": "esbuild.transformSync",
|
|
5940
|
-
"remarks": "The function will receive the computed options from the bundler. It can use with these options as it wishes, however a TransformResult must be returned to integrate with CDK.\nMust throw a `TransformFailure` on failure to correctly inform the bundler.",
|
|
5941
|
-
"returns": "esbuild.TransformResult",
|
|
5942
|
-
"stability": "experimental",
|
|
5943
|
-
"summary": "Escape hatch to provide the bundler with a custom transform function."
|
|
6837
|
+
"remarks": "Please refer to the esbuild Transform API docs for details.",
|
|
6838
|
+
"see": "https://esbuild.github.io/api/#transform-api",
|
|
6839
|
+
"stability": "stable",
|
|
6840
|
+
"summary": "Transform options passed on to esbuild."
|
|
5944
6841
|
},
|
|
5945
6842
|
"immutable": true,
|
|
5946
6843
|
"locationInModule": {
|
|
5947
6844
|
"filename": "src/inline-code.ts",
|
|
5948
|
-
"line":
|
|
6845
|
+
"line": 18
|
|
5949
6846
|
},
|
|
5950
|
-
"name": "
|
|
6847
|
+
"name": "transformOptions",
|
|
5951
6848
|
"optional": true,
|
|
5952
6849
|
"type": {
|
|
5953
|
-
"
|
|
6850
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
5954
6851
|
}
|
|
5955
6852
|
},
|
|
5956
6853
|
{
|
|
5957
6854
|
"abstract": true,
|
|
5958
6855
|
"docs": {
|
|
5959
|
-
"
|
|
5960
|
-
"
|
|
6856
|
+
"default": "new DefaultEsbuildProvider()",
|
|
6857
|
+
"remarks": "Configure the default `EsbuildProvider` for more options or\nprovide a custom `ITransformProvider` as an escape hatch.",
|
|
5961
6858
|
"stability": "stable",
|
|
5962
|
-
"summary": "Transform
|
|
6859
|
+
"summary": "The esbuild Transform API implementation to be used."
|
|
5963
6860
|
},
|
|
5964
6861
|
"immutable": true,
|
|
5965
6862
|
"locationInModule": {
|
|
5966
6863
|
"filename": "src/inline-code.ts",
|
|
5967
|
-
"line":
|
|
6864
|
+
"line": 30
|
|
5968
6865
|
},
|
|
5969
|
-
"name": "
|
|
6866
|
+
"name": "transformProvider",
|
|
5970
6867
|
"optional": true,
|
|
5971
6868
|
"type": {
|
|
5972
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6869
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5973
6870
|
}
|
|
5974
6871
|
}
|
|
5975
6872
|
],
|
|
5976
6873
|
"symbolId": "src/inline-code:TransformerProps"
|
|
5977
6874
|
},
|
|
6875
|
+
"@mrgrain/cdk-esbuild.TsconfigOptions": {
|
|
6876
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
6877
|
+
"datatype": true,
|
|
6878
|
+
"docs": {
|
|
6879
|
+
"stability": "stable"
|
|
6880
|
+
},
|
|
6881
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigOptions",
|
|
6882
|
+
"kind": "interface",
|
|
6883
|
+
"locationInModule": {
|
|
6884
|
+
"filename": "src/esbuild-types.ts",
|
|
6885
|
+
"line": 611
|
|
6886
|
+
},
|
|
6887
|
+
"name": "TsconfigOptions",
|
|
6888
|
+
"properties": [
|
|
6889
|
+
{
|
|
6890
|
+
"abstract": true,
|
|
6891
|
+
"docs": {
|
|
6892
|
+
"stability": "stable"
|
|
6893
|
+
},
|
|
6894
|
+
"immutable": true,
|
|
6895
|
+
"locationInModule": {
|
|
6896
|
+
"filename": "src/esbuild-types.ts",
|
|
6897
|
+
"line": 612
|
|
6898
|
+
},
|
|
6899
|
+
"name": "compilerOptions",
|
|
6900
|
+
"optional": true,
|
|
6901
|
+
"type": {
|
|
6902
|
+
"fqn": "@mrgrain/cdk-esbuild.CompilerOptions"
|
|
6903
|
+
}
|
|
6904
|
+
}
|
|
6905
|
+
],
|
|
6906
|
+
"symbolId": "src/esbuild-types:TsconfigOptions"
|
|
6907
|
+
},
|
|
5978
6908
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
5979
6909
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5980
6910
|
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
@@ -5990,7 +6920,7 @@
|
|
|
5990
6920
|
},
|
|
5991
6921
|
"locationInModule": {
|
|
5992
6922
|
"filename": "src/asset.ts",
|
|
5993
|
-
"line":
|
|
6923
|
+
"line": 57
|
|
5994
6924
|
},
|
|
5995
6925
|
"parameters": [
|
|
5996
6926
|
{
|
|
@@ -6016,7 +6946,7 @@
|
|
|
6016
6946
|
"kind": "class",
|
|
6017
6947
|
"locationInModule": {
|
|
6018
6948
|
"filename": "src/asset.ts",
|
|
6019
|
-
"line":
|
|
6949
|
+
"line": 135
|
|
6020
6950
|
},
|
|
6021
6951
|
"name": "TypeScriptAsset",
|
|
6022
6952
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
@@ -6035,14 +6965,14 @@
|
|
|
6035
6965
|
},
|
|
6036
6966
|
"locationInModule": {
|
|
6037
6967
|
"filename": "src/code.ts",
|
|
6038
|
-
"line":
|
|
6968
|
+
"line": 194
|
|
6039
6969
|
},
|
|
6040
6970
|
"parameters": [
|
|
6041
6971
|
{
|
|
6042
6972
|
"docs": {
|
|
6043
|
-
"remarks": "
|
|
6973
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
6044
6974
|
"stability": "stable",
|
|
6045
|
-
"summary": "A
|
|
6975
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
6046
6976
|
},
|
|
6047
6977
|
"name": "entryPoints",
|
|
6048
6978
|
"type": {
|
|
@@ -6088,7 +7018,7 @@
|
|
|
6088
7018
|
"kind": "class",
|
|
6089
7019
|
"locationInModule": {
|
|
6090
7020
|
"filename": "src/code.ts",
|
|
6091
|
-
"line":
|
|
7021
|
+
"line": 185
|
|
6092
7022
|
},
|
|
6093
7023
|
"methods": [
|
|
6094
7024
|
{
|
|
@@ -6097,7 +7027,7 @@
|
|
|
6097
7027
|
},
|
|
6098
7028
|
"locationInModule": {
|
|
6099
7029
|
"filename": "src/code.ts",
|
|
6100
|
-
"line":
|
|
7030
|
+
"line": 186
|
|
6101
7031
|
},
|
|
6102
7032
|
"name": "getAsset",
|
|
6103
7033
|
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
@@ -6133,7 +7063,7 @@
|
|
|
6133
7063
|
"kind": "interface",
|
|
6134
7064
|
"locationInModule": {
|
|
6135
7065
|
"filename": "src/code.ts",
|
|
6136
|
-
"line":
|
|
7066
|
+
"line": 17
|
|
6137
7067
|
},
|
|
6138
7068
|
"name": "TypeScriptCodeProps",
|
|
6139
7069
|
"properties": [
|
|
@@ -6170,10 +7100,15 @@
|
|
|
6170
7100
|
},
|
|
6171
7101
|
"locationInModule": {
|
|
6172
7102
|
"filename": "src/source.ts",
|
|
6173
|
-
"line":
|
|
7103
|
+
"line": 154
|
|
6174
7104
|
},
|
|
6175
7105
|
"parameters": [
|
|
6176
7106
|
{
|
|
7107
|
+
"docs": {
|
|
7108
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
7109
|
+
"stability": "stable",
|
|
7110
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
7111
|
+
},
|
|
6177
7112
|
"name": "entryPoints",
|
|
6178
7113
|
"type": {
|
|
6179
7114
|
"union": {
|
|
@@ -6202,6 +7137,11 @@
|
|
|
6202
7137
|
}
|
|
6203
7138
|
},
|
|
6204
7139
|
{
|
|
7140
|
+
"docs": {
|
|
7141
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=browser`",
|
|
7142
|
+
"stability": "stable",
|
|
7143
|
+
"summary": "Props to change the behavior of the bundler."
|
|
7144
|
+
},
|
|
6205
7145
|
"name": "props",
|
|
6206
7146
|
"optional": true,
|
|
6207
7147
|
"type": {
|
|
@@ -6216,7 +7156,7 @@
|
|
|
6216
7156
|
"kind": "class",
|
|
6217
7157
|
"locationInModule": {
|
|
6218
7158
|
"filename": "src/source.ts",
|
|
6219
|
-
"line":
|
|
7159
|
+
"line": 148
|
|
6220
7160
|
},
|
|
6221
7161
|
"methods": [
|
|
6222
7162
|
{
|
|
@@ -6226,7 +7166,7 @@
|
|
|
6226
7166
|
},
|
|
6227
7167
|
"locationInModule": {
|
|
6228
7168
|
"filename": "src/source.ts",
|
|
6229
|
-
"line":
|
|
7169
|
+
"line": 73
|
|
6230
7170
|
},
|
|
6231
7171
|
"name": "bind",
|
|
6232
7172
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -6283,7 +7223,7 @@
|
|
|
6283
7223
|
},
|
|
6284
7224
|
"locationInModule": {
|
|
6285
7225
|
"filename": "src/source.ts",
|
|
6286
|
-
"line":
|
|
7226
|
+
"line": 152
|
|
6287
7227
|
},
|
|
6288
7228
|
"name": "assetClass",
|
|
6289
7229
|
"type": {
|
|
@@ -6346,6 +7286,6 @@
|
|
|
6346
7286
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6347
7287
|
}
|
|
6348
7288
|
},
|
|
6349
|
-
"version": "4.0.0-
|
|
6350
|
-
"fingerprint": "
|
|
6351
|
-
}
|
|
7289
|
+
"version": "4.0.0-beta.1",
|
|
7290
|
+
"fingerprint": "Ql2qf6q0czRFU4J09lF7FC76VwV5OlAcB4FrKmsRolU="
|
|
7291
|
+
}
|