@mrgrain/cdk-esbuild 4.0.0-alpha.7 → 4.0.0-beta.0
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 +1573 -588
- package/CHANGELOG.md +104 -0
- package/LICENSE +1 -1
- package/README.md +223 -102
- package/lib/asset.d.ts +20 -5
- package/lib/asset.js +31 -19
- package/lib/bundler.d.ts +51 -28
- package/lib/bundler.js +28 -17
- package/lib/code.d.ts +82 -16
- package/lib/code.js +71 -25
- package/lib/esbuild-types.d.ts +49 -18
- package/lib/esbuild-types.js +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +8 -7
- 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 +33 -25
- package/rosetta/default.ts-fixture +32 -0
- package/.gitattributes +0 -24
- package/.projenrc.ts +0 -208
- package/API.md +0 -2477
- package/SECURITY.md +0 -19
- package/lib/esbuild-polyfill.js +0 -2302
- package/lib/esbuild-wrapper.d.ts +0 -3
- package/lib/esbuild-wrapper.js +0 -31
- package/lib/formatMessages.d.ts +0 -18
- package/lib/formatMessages.js +0 -34
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -35
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -47
- package/node_modules/which/which.js +0 -125
package/.jsii
CHANGED
|
@@ -7,11 +7,8 @@
|
|
|
7
7
|
],
|
|
8
8
|
"url": "https://moritzkornher.de"
|
|
9
9
|
},
|
|
10
|
-
"bundled": {
|
|
11
|
-
"which": "^2.0.2"
|
|
12
|
-
},
|
|
13
10
|
"dependencies": {
|
|
14
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.12.0",
|
|
15
12
|
"constructs": "^10.0.5"
|
|
16
13
|
},
|
|
17
14
|
"dependencyClosure": {
|
|
@@ -108,6 +105,19 @@
|
|
|
108
105
|
}
|
|
109
106
|
}
|
|
110
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
|
+
},
|
|
111
121
|
"aws-cdk-lib.aws_apigateway": {
|
|
112
122
|
"targets": {
|
|
113
123
|
"dotnet": {
|
|
@@ -1123,6 +1133,19 @@
|
|
|
1123
1133
|
}
|
|
1124
1134
|
}
|
|
1125
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
|
+
},
|
|
1126
1149
|
"aws-cdk-lib.aws_finspace": {
|
|
1127
1150
|
"targets": {
|
|
1128
1151
|
"dotnet": {
|
|
@@ -1162,6 +1185,19 @@
|
|
|
1162
1185
|
}
|
|
1163
1186
|
}
|
|
1164
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
|
+
},
|
|
1165
1201
|
"aws-cdk-lib.aws_frauddetector": {
|
|
1166
1202
|
"targets": {
|
|
1167
1203
|
"dotnet": {
|
|
@@ -1344,6 +1380,19 @@
|
|
|
1344
1380
|
}
|
|
1345
1381
|
}
|
|
1346
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
|
+
},
|
|
1347
1396
|
"aws-cdk-lib.aws_iot": {
|
|
1348
1397
|
"targets": {
|
|
1349
1398
|
"dotnet": {
|
|
@@ -1474,6 +1523,19 @@
|
|
|
1474
1523
|
}
|
|
1475
1524
|
}
|
|
1476
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
|
+
},
|
|
1477
1539
|
"aws-cdk-lib.aws_kendra": {
|
|
1478
1540
|
"targets": {
|
|
1479
1541
|
"dotnet": {
|
|
@@ -1513,6 +1575,19 @@
|
|
|
1513
1575
|
}
|
|
1514
1576
|
}
|
|
1515
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
|
+
},
|
|
1516
1591
|
"aws-cdk-lib.aws_kinesisfirehose": {
|
|
1517
1592
|
"targets": {
|
|
1518
1593
|
"dotnet": {
|
|
@@ -1526,6 +1601,19 @@
|
|
|
1526
1601
|
}
|
|
1527
1602
|
}
|
|
1528
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
|
+
},
|
|
1529
1617
|
"aws-cdk-lib.aws_kms": {
|
|
1530
1618
|
"targets": {
|
|
1531
1619
|
"dotnet": {
|
|
@@ -1604,6 +1692,19 @@
|
|
|
1604
1692
|
}
|
|
1605
1693
|
}
|
|
1606
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
|
+
},
|
|
1607
1708
|
"aws-cdk-lib.aws_licensemanager": {
|
|
1608
1709
|
"targets": {
|
|
1609
1710
|
"dotnet": {
|
|
@@ -2033,6 +2134,19 @@
|
|
|
2033
2134
|
}
|
|
2034
2135
|
}
|
|
2035
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
|
+
},
|
|
2036
2150
|
"aws-cdk-lib.aws_rekognition": {
|
|
2037
2151
|
"targets": {
|
|
2038
2152
|
"dotnet": {
|
|
@@ -2046,6 +2160,19 @@
|
|
|
2046
2160
|
}
|
|
2047
2161
|
}
|
|
2048
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
|
+
},
|
|
2049
2176
|
"aws-cdk-lib.aws_resourcegroups": {
|
|
2050
2177
|
"targets": {
|
|
2051
2178
|
"dotnet": {
|
|
@@ -2150,6 +2277,19 @@
|
|
|
2150
2277
|
}
|
|
2151
2278
|
}
|
|
2152
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
|
+
},
|
|
2153
2293
|
"aws-cdk-lib.aws_s3": {
|
|
2154
2294
|
"targets": {
|
|
2155
2295
|
"dotnet": {
|
|
@@ -2780,7 +2920,7 @@
|
|
|
2780
2920
|
"stability": "stable"
|
|
2781
2921
|
},
|
|
2782
2922
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2783
|
-
"jsiiVersion": "1.
|
|
2923
|
+
"jsiiVersion": "1.72.0 (build 4b8828b)",
|
|
2784
2924
|
"keywords": [
|
|
2785
2925
|
"aws-cdk",
|
|
2786
2926
|
"bundler",
|
|
@@ -2803,7 +2943,7 @@
|
|
|
2803
2943
|
},
|
|
2804
2944
|
"name": "@mrgrain/cdk-esbuild",
|
|
2805
2945
|
"readme": {
|
|
2806
|
-
"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) | [Migrating to v3](#migrating-to-v3) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning)\n\n> This 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\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### Migrating to v3\n\nThe release of cdk-esbuild v3 brings compatibility with AWS CDK v2. Furthermore all deprecated properties and classes have been removed. In particular `InlineCode` classes now take `TransformerProps` as second parameter instead of transform options.\n\n#### Upgrading\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) | [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 and publish assets for use.\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**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\n_Esbuild_ minor version upgrades are introduced in **minor versions** of this package and inherit breaking changes from _esbuild_.\n\n## Getting started\n\nInstall `cdk-esbuild` for Node.js with 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 Dotnet, use these commands:\n\n```sh\n# Python\npip install streamlink-serverless\n\n# Dotnet\ndotnet add package StreamlinkServerless\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda Function](examples/typescript/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\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 [Static Website with React](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](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 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> ```sh\n> npm i @aws-cdk/aws-synthetics-alpha\n> ```\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/canary.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\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 Classes and Structs. This information is also available as part of your IDE's code completion.\n\n### Python and Dotnet\n\nBecause _esbuild_ requires a platform and architecture specific binary, it currently has to be installed using npm (or any other Node.js package manager).\n\nWhen `cdk-esbuild` is used with Python or Dotnet, it will automatically detect a local or global installation of the _esbuild_ npm package - or fallback 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\nWhile this \"best effort\" approach makes it easy to get started, it is not always desirable.\nFor 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- **Recommended** - Install _esbuild_ as a local package\\\n The recommended approach is to manage an additional Node.js project in the root of your AWS CDK project.\n _esbuild_ should then be added to the `package.json` file and it is your responsibility to ensure the required setup steps are run in every environment (development machines & CI/CD systems).\n The _esbuild_ package will then be detected automatically.\n- Install _esbuild_ as a global package\\\n Instead of installing the package in a local project, it can also be installed globally with `npm install -g esbuild` or a similar command.\n The _esbuild_ package will be detected automatically from the global installation.\n This approach might be preferred if a build container is prepared ahead of time, thus avoiding repeated package installation.\n- Set `CDK_ESBUILD_MODULE_PATH` env variable\\\n If an installed _esbuild_ module cannot be reliably detected by the algorithm, you can provide the absolute path to the module as an environment variable.\n This approach has the advantage that the location of the module can be different on different systems.\n While it can be combined with either installation approach, it is usually used with a global installation of the _esbuild_ package.\n- Set `esbuildModulePath` prop\\\n Similar to setting the module path via env variable, it can also be passed as the `esbuildModulePath` prop to a `EsbuildProvider`:\n\n ```ts\n new EsbuildProvider({\n esbuildModulePath: '/home/user/node_modules/esbuild/lib/main.js'\n });\n ```\n\n- Override the default implementation provider\\\n Using the previous approach, but setting it for every usage:\n\n ```ts\n const customModule = new EsbuildProvider({\n esbuildModulePath: '/home/user/node_modules/esbuild/lib/main.js'\n });\n EsbuildProvider.overrideDefaultProvider(customModule);\n ```\n\nThe `esbuildModulePath` can be provided as a known, absolute or relative path.\nWhen using the programmatic interface, this package additionally offers some helper methods to influence to fine-tune to automatic detection algorithm:\n\n```ts\n// This will force installation to a temporary location\nnew EsbuildProvider({\n esbuildModulePath: EsbuildSource.install()\n});\n```\n\nPlease see the [`EsbuildSource`](API.md#esbuildsource) reference for a list of available methods.\n\n### Customizing the Esbuild API\n\nThis package uses the _esbuild_ JavaScript API. For most use cases the default configuration will be suitable.\n\nIn some cases it might be useful to configure _esbuild_ differently or even provide a completely custom implementation.\nCommon examples for this are:\n\n- To use a pre-installed version of _esbuild_ with Python and Dotnet\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\n#### Custom Build and Transform API implementations\n\n> 💡 See [Using esbuild with plugins](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.\nThe custom implementation can amend, change or discard any of these.\nHowever with `IBuildProvider` the integration with CDK relies heavily on the `outdir`/`outfile` values and it's usually required to use them unchanged.\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\nIt is also possible to change the default Esbuild API implementation for all usages of this package.\nYou can change the default for both APIs 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) Please submit 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## FAQ\n\n### How do I upgrade from `@mrgrain/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/Dotnet] 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. Always prefer to ship a compiled `.js` file or even bundle a zip archive in your package. For 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"
|
|
2807
2947
|
},
|
|
2808
2948
|
"repository": {
|
|
2809
2949
|
"type": "git",
|
|
@@ -2811,6 +2951,11 @@
|
|
|
2811
2951
|
},
|
|
2812
2952
|
"schema": "jsii/0.10.0",
|
|
2813
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
|
+
},
|
|
2814
2959
|
"js": {
|
|
2815
2960
|
"npm": "@mrgrain/cdk-esbuild"
|
|
2816
2961
|
},
|
|
@@ -2820,51 +2965,6 @@
|
|
|
2820
2965
|
}
|
|
2821
2966
|
},
|
|
2822
2967
|
"types": {
|
|
2823
|
-
"@mrgrain/cdk-esbuild.Asset": {
|
|
2824
|
-
"abstract": true,
|
|
2825
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
2826
|
-
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
2827
|
-
"docs": {
|
|
2828
|
-
"stability": "stable"
|
|
2829
|
-
},
|
|
2830
|
-
"fqn": "@mrgrain/cdk-esbuild.Asset",
|
|
2831
|
-
"initializer": {
|
|
2832
|
-
"docs": {
|
|
2833
|
-
"stability": "stable"
|
|
2834
|
-
},
|
|
2835
|
-
"locationInModule": {
|
|
2836
|
-
"filename": "src/asset.ts",
|
|
2837
|
-
"line": 42
|
|
2838
|
-
},
|
|
2839
|
-
"parameters": [
|
|
2840
|
-
{
|
|
2841
|
-
"name": "scope",
|
|
2842
|
-
"type": {
|
|
2843
|
-
"fqn": "constructs.Construct"
|
|
2844
|
-
}
|
|
2845
|
-
},
|
|
2846
|
-
{
|
|
2847
|
-
"name": "id",
|
|
2848
|
-
"type": {
|
|
2849
|
-
"primitive": "string"
|
|
2850
|
-
}
|
|
2851
|
-
},
|
|
2852
|
-
{
|
|
2853
|
-
"name": "props",
|
|
2854
|
-
"type": {
|
|
2855
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
]
|
|
2859
|
-
},
|
|
2860
|
-
"kind": "class",
|
|
2861
|
-
"locationInModule": {
|
|
2862
|
-
"filename": "src/asset.ts",
|
|
2863
|
-
"line": 38
|
|
2864
|
-
},
|
|
2865
|
-
"name": "Asset",
|
|
2866
|
-
"symbolId": "src/asset:Asset"
|
|
2867
|
-
},
|
|
2868
2968
|
"@mrgrain/cdk-esbuild.AssetProps": {
|
|
2869
2969
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
2870
2970
|
"datatype": true,
|
|
@@ -2885,14 +2985,14 @@
|
|
|
2885
2985
|
{
|
|
2886
2986
|
"abstract": true,
|
|
2887
2987
|
"docs": {
|
|
2888
|
-
"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'}`",
|
|
2889
2989
|
"stability": "stable",
|
|
2890
|
-
"summary": "A
|
|
2990
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
2891
2991
|
},
|
|
2892
2992
|
"immutable": true,
|
|
2893
2993
|
"locationInModule": {
|
|
2894
2994
|
"filename": "src/asset.ts",
|
|
2895
|
-
"line":
|
|
2995
|
+
"line": 40
|
|
2896
2996
|
},
|
|
2897
2997
|
"name": "entryPoints",
|
|
2898
2998
|
"type": {
|
|
@@ -2952,7 +3052,7 @@
|
|
|
2952
3052
|
"kind": "interface",
|
|
2953
3053
|
"locationInModule": {
|
|
2954
3054
|
"filename": "src/esbuild-types.ts",
|
|
2955
|
-
"line":
|
|
3055
|
+
"line": 86
|
|
2956
3056
|
},
|
|
2957
3057
|
"name": "BuildOptions",
|
|
2958
3058
|
"properties": [
|
|
@@ -2965,7 +3065,7 @@
|
|
|
2965
3065
|
"immutable": true,
|
|
2966
3066
|
"locationInModule": {
|
|
2967
3067
|
"filename": "src/esbuild-types.ts",
|
|
2968
|
-
"line":
|
|
3068
|
+
"line": 140
|
|
2969
3069
|
},
|
|
2970
3070
|
"name": "absWorkingDir",
|
|
2971
3071
|
"optional": true,
|
|
@@ -2977,13 +3077,35 @@
|
|
|
2977
3077
|
"abstract": true,
|
|
2978
3078
|
"docs": {
|
|
2979
3079
|
"stability": "stable",
|
|
2980
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3080
|
+
"summary": "Documentation: https://esbuild.github.io/api/#alias."
|
|
2981
3081
|
},
|
|
2982
3082
|
"immutable": true,
|
|
2983
3083
|
"locationInModule": {
|
|
2984
3084
|
"filename": "src/esbuild-types.ts",
|
|
2985
3085
|
"line": 106
|
|
2986
3086
|
},
|
|
3087
|
+
"name": "alias",
|
|
3088
|
+
"optional": true,
|
|
3089
|
+
"type": {
|
|
3090
|
+
"collection": {
|
|
3091
|
+
"elementtype": {
|
|
3092
|
+
"primitive": "string"
|
|
3093
|
+
},
|
|
3094
|
+
"kind": "map"
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
"abstract": true,
|
|
3100
|
+
"docs": {
|
|
3101
|
+
"stability": "stable",
|
|
3102
|
+
"summary": "Documentation: https://esbuild.github.io/api/#allow-overwrite."
|
|
3103
|
+
},
|
|
3104
|
+
"immutable": true,
|
|
3105
|
+
"locationInModule": {
|
|
3106
|
+
"filename": "src/esbuild-types.ts",
|
|
3107
|
+
"line": 118
|
|
3108
|
+
},
|
|
2987
3109
|
"name": "allowOverwrite",
|
|
2988
3110
|
"optional": true,
|
|
2989
3111
|
"type": {
|
|
@@ -2999,7 +3121,7 @@
|
|
|
2999
3121
|
"immutable": true,
|
|
3000
3122
|
"locationInModule": {
|
|
3001
3123
|
"filename": "src/esbuild-types.ts",
|
|
3002
|
-
"line":
|
|
3124
|
+
"line": 130
|
|
3003
3125
|
},
|
|
3004
3126
|
"name": "assetNames",
|
|
3005
3127
|
"optional": true,
|
|
@@ -3016,7 +3138,7 @@
|
|
|
3016
3138
|
"immutable": true,
|
|
3017
3139
|
"locationInModule": {
|
|
3018
3140
|
"filename": "src/esbuild-types.ts",
|
|
3019
|
-
"line":
|
|
3141
|
+
"line": 134
|
|
3020
3142
|
},
|
|
3021
3143
|
"name": "banner",
|
|
3022
3144
|
"optional": true,
|
|
@@ -3038,7 +3160,7 @@
|
|
|
3038
3160
|
"immutable": true,
|
|
3039
3161
|
"locationInModule": {
|
|
3040
3162
|
"filename": "src/esbuild-types.ts",
|
|
3041
|
-
"line":
|
|
3163
|
+
"line": 88
|
|
3042
3164
|
},
|
|
3043
3165
|
"name": "bundle",
|
|
3044
3166
|
"optional": true,
|
|
@@ -3055,7 +3177,7 @@
|
|
|
3055
3177
|
"immutable": true,
|
|
3056
3178
|
"locationInModule": {
|
|
3057
3179
|
"filename": "src/esbuild-types.ts",
|
|
3058
|
-
"line":
|
|
3180
|
+
"line": 50
|
|
3059
3181
|
},
|
|
3060
3182
|
"name": "charset",
|
|
3061
3183
|
"optional": true,
|
|
@@ -3072,7 +3194,7 @@
|
|
|
3072
3194
|
"immutable": true,
|
|
3073
3195
|
"locationInModule": {
|
|
3074
3196
|
"filename": "src/esbuild-types.ts",
|
|
3075
|
-
"line":
|
|
3197
|
+
"line": 128
|
|
3076
3198
|
},
|
|
3077
3199
|
"name": "chunkNames",
|
|
3078
3200
|
"optional": true,
|
|
@@ -3089,7 +3211,7 @@
|
|
|
3089
3211
|
"immutable": true,
|
|
3090
3212
|
"locationInModule": {
|
|
3091
3213
|
"filename": "src/esbuild-types.ts",
|
|
3092
|
-
"line":
|
|
3214
|
+
"line": 77
|
|
3093
3215
|
},
|
|
3094
3216
|
"name": "color",
|
|
3095
3217
|
"optional": true,
|
|
@@ -3106,7 +3228,7 @@
|
|
|
3106
3228
|
"immutable": true,
|
|
3107
3229
|
"locationInModule": {
|
|
3108
3230
|
"filename": "src/esbuild-types.ts",
|
|
3109
|
-
"line":
|
|
3231
|
+
"line": 114
|
|
3110
3232
|
},
|
|
3111
3233
|
"name": "conditions",
|
|
3112
3234
|
"optional": true,
|
|
@@ -3128,7 +3250,7 @@
|
|
|
3128
3250
|
"immutable": true,
|
|
3129
3251
|
"locationInModule": {
|
|
3130
3252
|
"filename": "src/esbuild-types.ts",
|
|
3131
|
-
"line":
|
|
3253
|
+
"line": 70
|
|
3132
3254
|
},
|
|
3133
3255
|
"name": "define",
|
|
3134
3256
|
"optional": true,
|
|
@@ -3150,7 +3272,7 @@
|
|
|
3150
3272
|
"immutable": true,
|
|
3151
3273
|
"locationInModule": {
|
|
3152
3274
|
"filename": "src/esbuild-types.ts",
|
|
3153
|
-
"line":
|
|
3275
|
+
"line": 40
|
|
3154
3276
|
},
|
|
3155
3277
|
"name": "drop",
|
|
3156
3278
|
"optional": true,
|
|
@@ -3172,7 +3294,7 @@
|
|
|
3172
3294
|
"immutable": true,
|
|
3173
3295
|
"locationInModule": {
|
|
3174
3296
|
"filename": "src/esbuild-types.ts",
|
|
3175
|
-
"line":
|
|
3297
|
+
"line": 126
|
|
3176
3298
|
},
|
|
3177
3299
|
"name": "entryNames",
|
|
3178
3300
|
"optional": true,
|
|
@@ -3189,7 +3311,7 @@
|
|
|
3189
3311
|
"immutable": true,
|
|
3190
3312
|
"locationInModule": {
|
|
3191
3313
|
"filename": "src/esbuild-types.ts",
|
|
3192
|
-
"line":
|
|
3314
|
+
"line": 102
|
|
3193
3315
|
},
|
|
3194
3316
|
"name": "external",
|
|
3195
3317
|
"optional": true,
|
|
@@ -3211,7 +3333,7 @@
|
|
|
3211
3333
|
"immutable": true,
|
|
3212
3334
|
"locationInModule": {
|
|
3213
3335
|
"filename": "src/esbuild-types.ts",
|
|
3214
|
-
"line":
|
|
3336
|
+
"line": 136
|
|
3215
3337
|
},
|
|
3216
3338
|
"name": "footer",
|
|
3217
3339
|
"optional": true,
|
|
@@ -3245,7 +3367,7 @@
|
|
|
3245
3367
|
"abstract": true,
|
|
3246
3368
|
"docs": {
|
|
3247
3369
|
"stability": "stable",
|
|
3248
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3370
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
3249
3371
|
},
|
|
3250
3372
|
"immutable": true,
|
|
3251
3373
|
"locationInModule": {
|
|
@@ -3267,7 +3389,7 @@
|
|
|
3267
3389
|
"immutable": true,
|
|
3268
3390
|
"locationInModule": {
|
|
3269
3391
|
"filename": "src/esbuild-types.ts",
|
|
3270
|
-
"line":
|
|
3392
|
+
"line": 54
|
|
3271
3393
|
},
|
|
3272
3394
|
"name": "ignoreAnnotations",
|
|
3273
3395
|
"optional": true,
|
|
@@ -3284,7 +3406,7 @@
|
|
|
3284
3406
|
"immutable": true,
|
|
3285
3407
|
"locationInModule": {
|
|
3286
3408
|
"filename": "src/esbuild-types.ts",
|
|
3287
|
-
"line":
|
|
3409
|
+
"line": 138
|
|
3288
3410
|
},
|
|
3289
3411
|
"name": "incremental",
|
|
3290
3412
|
"optional": true,
|
|
@@ -3301,7 +3423,7 @@
|
|
|
3301
3423
|
"immutable": true,
|
|
3302
3424
|
"locationInModule": {
|
|
3303
3425
|
"filename": "src/esbuild-types.ts",
|
|
3304
|
-
"line":
|
|
3426
|
+
"line": 132
|
|
3305
3427
|
},
|
|
3306
3428
|
"name": "inject",
|
|
3307
3429
|
"optional": true,
|
|
@@ -3323,7 +3445,7 @@
|
|
|
3323
3445
|
"immutable": true,
|
|
3324
3446
|
"locationInModule": {
|
|
3325
3447
|
"filename": "src/esbuild-types.ts",
|
|
3326
|
-
"line":
|
|
3448
|
+
"line": 57
|
|
3327
3449
|
},
|
|
3328
3450
|
"name": "jsx",
|
|
3329
3451
|
"optional": true,
|
|
@@ -3331,6 +3453,23 @@
|
|
|
3331
3453
|
"primitive": "string"
|
|
3332
3454
|
}
|
|
3333
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
|
+
},
|
|
3334
3473
|
{
|
|
3335
3474
|
"abstract": true,
|
|
3336
3475
|
"docs": {
|
|
@@ -3340,7 +3479,7 @@
|
|
|
3340
3479
|
"immutable": true,
|
|
3341
3480
|
"locationInModule": {
|
|
3342
3481
|
"filename": "src/esbuild-types.ts",
|
|
3343
|
-
"line":
|
|
3482
|
+
"line": 59
|
|
3344
3483
|
},
|
|
3345
3484
|
"name": "jsxFactory",
|
|
3346
3485
|
"optional": true,
|
|
@@ -3357,7 +3496,7 @@
|
|
|
3357
3496
|
"immutable": true,
|
|
3358
3497
|
"locationInModule": {
|
|
3359
3498
|
"filename": "src/esbuild-types.ts",
|
|
3360
|
-
"line":
|
|
3499
|
+
"line": 61
|
|
3361
3500
|
},
|
|
3362
3501
|
"name": "jsxFragment",
|
|
3363
3502
|
"optional": true,
|
|
@@ -3365,6 +3504,40 @@
|
|
|
3365
3504
|
"primitive": "string"
|
|
3366
3505
|
}
|
|
3367
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
|
+
},
|
|
3368
3541
|
{
|
|
3369
3542
|
"abstract": true,
|
|
3370
3543
|
"docs": {
|
|
@@ -3374,7 +3547,7 @@
|
|
|
3374
3547
|
"immutable": true,
|
|
3375
3548
|
"locationInModule": {
|
|
3376
3549
|
"filename": "src/esbuild-types.ts",
|
|
3377
|
-
"line":
|
|
3550
|
+
"line": 74
|
|
3378
3551
|
},
|
|
3379
3552
|
"name": "keepNames",
|
|
3380
3553
|
"optional": true,
|
|
@@ -3408,7 +3581,7 @@
|
|
|
3408
3581
|
"immutable": true,
|
|
3409
3582
|
"locationInModule": {
|
|
3410
3583
|
"filename": "src/esbuild-types.ts",
|
|
3411
|
-
"line":
|
|
3584
|
+
"line": 108
|
|
3412
3585
|
},
|
|
3413
3586
|
"name": "loader",
|
|
3414
3587
|
"optional": true,
|
|
@@ -3430,7 +3603,7 @@
|
|
|
3430
3603
|
"immutable": true,
|
|
3431
3604
|
"locationInModule": {
|
|
3432
3605
|
"filename": "src/esbuild-types.ts",
|
|
3433
|
-
"line":
|
|
3606
|
+
"line": 79
|
|
3434
3607
|
},
|
|
3435
3608
|
"name": "logLevel",
|
|
3436
3609
|
"optional": true,
|
|
@@ -3447,7 +3620,7 @@
|
|
|
3447
3620
|
"immutable": true,
|
|
3448
3621
|
"locationInModule": {
|
|
3449
3622
|
"filename": "src/esbuild-types.ts",
|
|
3450
|
-
"line":
|
|
3623
|
+
"line": 81
|
|
3451
3624
|
},
|
|
3452
3625
|
"name": "logLimit",
|
|
3453
3626
|
"optional": true,
|
|
@@ -3464,7 +3637,7 @@
|
|
|
3464
3637
|
"immutable": true,
|
|
3465
3638
|
"locationInModule": {
|
|
3466
3639
|
"filename": "src/esbuild-types.ts",
|
|
3467
|
-
"line":
|
|
3640
|
+
"line": 83
|
|
3468
3641
|
},
|
|
3469
3642
|
"name": "logOverride",
|
|
3470
3643
|
"optional": true,
|
|
@@ -3481,12 +3654,12 @@
|
|
|
3481
3654
|
"abstract": true,
|
|
3482
3655
|
"docs": {
|
|
3483
3656
|
"stability": "stable",
|
|
3484
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
3657
|
+
"summary": "Documentation: https://esbuild.github.io/api/#main-fields."
|
|
3485
3658
|
},
|
|
3486
3659
|
"immutable": true,
|
|
3487
3660
|
"locationInModule": {
|
|
3488
3661
|
"filename": "src/esbuild-types.ts",
|
|
3489
|
-
"line":
|
|
3662
|
+
"line": 112
|
|
3490
3663
|
},
|
|
3491
3664
|
"name": "mainFields",
|
|
3492
3665
|
"optional": true,
|
|
@@ -3508,7 +3681,7 @@
|
|
|
3508
3681
|
"immutable": true,
|
|
3509
3682
|
"locationInModule": {
|
|
3510
3683
|
"filename": "src/esbuild-types.ts",
|
|
3511
|
-
"line":
|
|
3684
|
+
"line": 38
|
|
3512
3685
|
},
|
|
3513
3686
|
"name": "mangleCache",
|
|
3514
3687
|
"optional": true,
|
|
@@ -3539,7 +3712,7 @@
|
|
|
3539
3712
|
"immutable": true,
|
|
3540
3713
|
"locationInModule": {
|
|
3541
3714
|
"filename": "src/esbuild-types.ts",
|
|
3542
|
-
"line":
|
|
3715
|
+
"line": 32
|
|
3543
3716
|
},
|
|
3544
3717
|
"name": "mangleProps",
|
|
3545
3718
|
"optional": true,
|
|
@@ -3556,7 +3729,7 @@
|
|
|
3556
3729
|
"immutable": true,
|
|
3557
3730
|
"locationInModule": {
|
|
3558
3731
|
"filename": "src/esbuild-types.ts",
|
|
3559
|
-
"line":
|
|
3732
|
+
"line": 36
|
|
3560
3733
|
},
|
|
3561
3734
|
"name": "mangleQuoted",
|
|
3562
3735
|
"optional": true,
|
|
@@ -3573,7 +3746,7 @@
|
|
|
3573
3746
|
"immutable": true,
|
|
3574
3747
|
"locationInModule": {
|
|
3575
3748
|
"filename": "src/esbuild-types.ts",
|
|
3576
|
-
"line":
|
|
3749
|
+
"line": 96
|
|
3577
3750
|
},
|
|
3578
3751
|
"name": "metafile",
|
|
3579
3752
|
"optional": true,
|
|
@@ -3590,7 +3763,7 @@
|
|
|
3590
3763
|
"immutable": true,
|
|
3591
3764
|
"locationInModule": {
|
|
3592
3765
|
"filename": "src/esbuild-types.ts",
|
|
3593
|
-
"line":
|
|
3766
|
+
"line": 42
|
|
3594
3767
|
},
|
|
3595
3768
|
"name": "minify",
|
|
3596
3769
|
"optional": true,
|
|
@@ -3607,7 +3780,7 @@
|
|
|
3607
3780
|
"immutable": true,
|
|
3608
3781
|
"locationInModule": {
|
|
3609
3782
|
"filename": "src/esbuild-types.ts",
|
|
3610
|
-
"line":
|
|
3783
|
+
"line": 46
|
|
3611
3784
|
},
|
|
3612
3785
|
"name": "minifyIdentifiers",
|
|
3613
3786
|
"optional": true,
|
|
@@ -3624,7 +3797,7 @@
|
|
|
3624
3797
|
"immutable": true,
|
|
3625
3798
|
"locationInModule": {
|
|
3626
3799
|
"filename": "src/esbuild-types.ts",
|
|
3627
|
-
"line":
|
|
3800
|
+
"line": 48
|
|
3628
3801
|
},
|
|
3629
3802
|
"name": "minifySyntax",
|
|
3630
3803
|
"optional": true,
|
|
@@ -3641,7 +3814,7 @@
|
|
|
3641
3814
|
"immutable": true,
|
|
3642
3815
|
"locationInModule": {
|
|
3643
3816
|
"filename": "src/esbuild-types.ts",
|
|
3644
|
-
"line":
|
|
3817
|
+
"line": 44
|
|
3645
3818
|
},
|
|
3646
3819
|
"name": "minifyWhitespace",
|
|
3647
3820
|
"optional": true,
|
|
@@ -3658,7 +3831,7 @@
|
|
|
3658
3831
|
"immutable": true,
|
|
3659
3832
|
"locationInModule": {
|
|
3660
3833
|
"filename": "src/esbuild-types.ts",
|
|
3661
|
-
"line":
|
|
3834
|
+
"line": 142
|
|
3662
3835
|
},
|
|
3663
3836
|
"name": "nodePaths",
|
|
3664
3837
|
"optional": true,
|
|
@@ -3680,7 +3853,7 @@
|
|
|
3680
3853
|
"immutable": true,
|
|
3681
3854
|
"locationInModule": {
|
|
3682
3855
|
"filename": "src/esbuild-types.ts",
|
|
3683
|
-
"line":
|
|
3856
|
+
"line": 100
|
|
3684
3857
|
},
|
|
3685
3858
|
"name": "outbase",
|
|
3686
3859
|
"optional": true,
|
|
@@ -3697,7 +3870,7 @@
|
|
|
3697
3870
|
"immutable": true,
|
|
3698
3871
|
"locationInModule": {
|
|
3699
3872
|
"filename": "src/esbuild-types.ts",
|
|
3700
|
-
"line":
|
|
3873
|
+
"line": 98
|
|
3701
3874
|
},
|
|
3702
3875
|
"name": "outdir",
|
|
3703
3876
|
"optional": true,
|
|
@@ -3714,7 +3887,7 @@
|
|
|
3714
3887
|
"immutable": true,
|
|
3715
3888
|
"locationInModule": {
|
|
3716
3889
|
"filename": "src/esbuild-types.ts",
|
|
3717
|
-
"line":
|
|
3890
|
+
"line": 122
|
|
3718
3891
|
},
|
|
3719
3892
|
"name": "outExtension",
|
|
3720
3893
|
"optional": true,
|
|
@@ -3736,7 +3909,7 @@
|
|
|
3736
3909
|
"immutable": true,
|
|
3737
3910
|
"locationInModule": {
|
|
3738
3911
|
"filename": "src/esbuild-types.ts",
|
|
3739
|
-
"line":
|
|
3912
|
+
"line": 94
|
|
3740
3913
|
},
|
|
3741
3914
|
"name": "outfile",
|
|
3742
3915
|
"optional": true,
|
|
@@ -3744,6 +3917,23 @@
|
|
|
3744
3917
|
"primitive": "string"
|
|
3745
3918
|
}
|
|
3746
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
|
+
},
|
|
3747
3937
|
{
|
|
3748
3938
|
"abstract": true,
|
|
3749
3939
|
"docs": {
|
|
@@ -3753,7 +3943,7 @@
|
|
|
3753
3943
|
"immutable": true,
|
|
3754
3944
|
"locationInModule": {
|
|
3755
3945
|
"filename": "src/esbuild-types.ts",
|
|
3756
|
-
"line":
|
|
3946
|
+
"line": 29
|
|
3757
3947
|
},
|
|
3758
3948
|
"name": "platform",
|
|
3759
3949
|
"optional": true,
|
|
@@ -3770,7 +3960,7 @@
|
|
|
3770
3960
|
"immutable": true,
|
|
3771
3961
|
"locationInModule": {
|
|
3772
3962
|
"filename": "src/esbuild-types.ts",
|
|
3773
|
-
"line":
|
|
3963
|
+
"line": 92
|
|
3774
3964
|
},
|
|
3775
3965
|
"name": "preserveSymlinks",
|
|
3776
3966
|
"optional": true,
|
|
@@ -3787,7 +3977,7 @@
|
|
|
3787
3977
|
"immutable": true,
|
|
3788
3978
|
"locationInModule": {
|
|
3789
3979
|
"filename": "src/esbuild-types.ts",
|
|
3790
|
-
"line":
|
|
3980
|
+
"line": 124
|
|
3791
3981
|
},
|
|
3792
3982
|
"name": "publicPath",
|
|
3793
3983
|
"optional": true,
|
|
@@ -3804,7 +3994,7 @@
|
|
|
3804
3994
|
"immutable": true,
|
|
3805
3995
|
"locationInModule": {
|
|
3806
3996
|
"filename": "src/esbuild-types.ts",
|
|
3807
|
-
"line":
|
|
3997
|
+
"line": 72
|
|
3808
3998
|
},
|
|
3809
3999
|
"name": "pure",
|
|
3810
4000
|
"optional": true,
|
|
@@ -3826,7 +4016,7 @@
|
|
|
3826
4016
|
"immutable": true,
|
|
3827
4017
|
"locationInModule": {
|
|
3828
4018
|
"filename": "src/esbuild-types.ts",
|
|
3829
|
-
"line":
|
|
4019
|
+
"line": 34
|
|
3830
4020
|
},
|
|
3831
4021
|
"name": "reserveProps",
|
|
3832
4022
|
"optional": true,
|
|
@@ -3843,7 +4033,7 @@
|
|
|
3843
4033
|
"immutable": true,
|
|
3844
4034
|
"locationInModule": {
|
|
3845
4035
|
"filename": "src/esbuild-types.ts",
|
|
3846
|
-
"line":
|
|
4036
|
+
"line": 110
|
|
3847
4037
|
},
|
|
3848
4038
|
"name": "resolveExtensions",
|
|
3849
4039
|
"optional": true,
|
|
@@ -3925,7 +4115,7 @@
|
|
|
3925
4115
|
"immutable": true,
|
|
3926
4116
|
"locationInModule": {
|
|
3927
4117
|
"filename": "src/esbuild-types.ts",
|
|
3928
|
-
"line":
|
|
4118
|
+
"line": 90
|
|
3929
4119
|
},
|
|
3930
4120
|
"name": "splitting",
|
|
3931
4121
|
"optional": true,
|
|
@@ -3933,6 +4123,28 @@
|
|
|
3933
4123
|
"primitive": "boolean"
|
|
3934
4124
|
}
|
|
3935
4125
|
},
|
|
4126
|
+
{
|
|
4127
|
+
"abstract": true,
|
|
4128
|
+
"docs": {
|
|
4129
|
+
"stability": "stable",
|
|
4130
|
+
"summary": "Documentation: https://esbuild.github.io/api/#supported."
|
|
4131
|
+
},
|
|
4132
|
+
"immutable": true,
|
|
4133
|
+
"locationInModule": {
|
|
4134
|
+
"filename": "src/esbuild-types.ts",
|
|
4135
|
+
"line": 27
|
|
4136
|
+
},
|
|
4137
|
+
"name": "supported",
|
|
4138
|
+
"optional": true,
|
|
4139
|
+
"type": {
|
|
4140
|
+
"collection": {
|
|
4141
|
+
"elementtype": {
|
|
4142
|
+
"primitive": "boolean"
|
|
4143
|
+
},
|
|
4144
|
+
"kind": "map"
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
3936
4148
|
{
|
|
3937
4149
|
"abstract": true,
|
|
3938
4150
|
"docs": {
|
|
@@ -3973,7 +4185,7 @@
|
|
|
3973
4185
|
"immutable": true,
|
|
3974
4186
|
"locationInModule": {
|
|
3975
4187
|
"filename": "src/esbuild-types.ts",
|
|
3976
|
-
"line":
|
|
4188
|
+
"line": 52
|
|
3977
4189
|
},
|
|
3978
4190
|
"name": "treeShaking",
|
|
3979
4191
|
"optional": true,
|
|
@@ -3990,7 +4202,7 @@
|
|
|
3990
4202
|
"immutable": true,
|
|
3991
4203
|
"locationInModule": {
|
|
3992
4204
|
"filename": "src/esbuild-types.ts",
|
|
3993
|
-
"line":
|
|
4205
|
+
"line": 120
|
|
3994
4206
|
},
|
|
3995
4207
|
"name": "tsconfig",
|
|
3996
4208
|
"optional": true,
|
|
@@ -4007,7 +4219,7 @@
|
|
|
4007
4219
|
"immutable": true,
|
|
4008
4220
|
"locationInModule": {
|
|
4009
4221
|
"filename": "src/esbuild-types.ts",
|
|
4010
|
-
"line":
|
|
4222
|
+
"line": 116
|
|
4011
4223
|
},
|
|
4012
4224
|
"name": "write",
|
|
4013
4225
|
"optional": true,
|
|
@@ -4028,64 +4240,59 @@
|
|
|
4028
4240
|
"kind": "interface",
|
|
4029
4241
|
"locationInModule": {
|
|
4030
4242
|
"filename": "src/bundler.ts",
|
|
4031
|
-
"line":
|
|
4243
|
+
"line": 34
|
|
4032
4244
|
},
|
|
4033
4245
|
"name": "BundlerProps",
|
|
4034
4246
|
"properties": [
|
|
4035
4247
|
{
|
|
4036
4248
|
"abstract": true,
|
|
4037
4249
|
"docs": {
|
|
4038
|
-
"
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
"default": "esbuild.buildSync",
|
|
4043
|
-
"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.",
|
|
4044
|
-
"returns": "esbuild.BuildResult",
|
|
4045
|
-
"stability": "experimental",
|
|
4046
|
-
"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."
|
|
4047
4254
|
},
|
|
4048
4255
|
"immutable": true,
|
|
4049
4256
|
"locationInModule": {
|
|
4050
4257
|
"filename": "src/bundler.ts",
|
|
4051
|
-
"line":
|
|
4258
|
+
"line": 53
|
|
4052
4259
|
},
|
|
4053
|
-
"name": "
|
|
4260
|
+
"name": "buildOptions",
|
|
4054
4261
|
"optional": true,
|
|
4055
4262
|
"type": {
|
|
4056
|
-
"
|
|
4263
|
+
"fqn": "@mrgrain/cdk-esbuild.BuildOptions"
|
|
4057
4264
|
}
|
|
4058
4265
|
},
|
|
4059
4266
|
{
|
|
4060
4267
|
"abstract": true,
|
|
4061
4268
|
"docs": {
|
|
4062
|
-
"
|
|
4063
|
-
"
|
|
4269
|
+
"default": "new EsbuildProvider()",
|
|
4270
|
+
"remarks": "Configure the default `EsbuildProvider` for more options or\nprovide a custom `IBuildProvider` as an escape hatch.",
|
|
4064
4271
|
"stability": "stable",
|
|
4065
|
-
"summary": "
|
|
4272
|
+
"summary": "The esbuild Build API implementation to be used."
|
|
4066
4273
|
},
|
|
4067
4274
|
"immutable": true,
|
|
4068
4275
|
"locationInModule": {
|
|
4069
4276
|
"filename": "src/bundler.ts",
|
|
4070
|
-
"line":
|
|
4277
|
+
"line": 65
|
|
4071
4278
|
},
|
|
4072
|
-
"name": "
|
|
4279
|
+
"name": "buildProvider",
|
|
4073
4280
|
"optional": true,
|
|
4074
4281
|
"type": {
|
|
4075
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4282
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
4076
4283
|
}
|
|
4077
4284
|
},
|
|
4078
4285
|
{
|
|
4079
4286
|
"abstract": true,
|
|
4080
4287
|
"docs": {
|
|
4081
|
-
"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 `..`.",
|
|
4082
4289
|
"stability": "stable",
|
|
4083
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."
|
|
4084
4291
|
},
|
|
4085
4292
|
"immutable": true,
|
|
4086
4293
|
"locationInModule": {
|
|
4087
4294
|
"filename": "src/bundler.ts",
|
|
4088
|
-
"line":
|
|
4295
|
+
"line": 88
|
|
4089
4296
|
},
|
|
4090
4297
|
"name": "copyDir",
|
|
4091
4298
|
"optional": true,
|
|
@@ -4128,339 +4335,224 @@
|
|
|
4128
4335
|
]
|
|
4129
4336
|
}
|
|
4130
4337
|
}
|
|
4131
|
-
},
|
|
4132
|
-
{
|
|
4133
|
-
"abstract": true,
|
|
4134
|
-
"docs": {
|
|
4135
|
-
"remarks": "This is the same as setting the ESBUILD_BINARY_PATH environment variable.",
|
|
4136
|
-
"stability": "experimental",
|
|
4137
|
-
"summary": "Path to the binary used by esbuild."
|
|
4138
|
-
},
|
|
4139
|
-
"immutable": true,
|
|
4140
|
-
"locationInModule": {
|
|
4141
|
-
"filename": "src/bundler.ts",
|
|
4142
|
-
"line": 88
|
|
4143
|
-
},
|
|
4144
|
-
"name": "esbuildBinaryPath",
|
|
4145
|
-
"optional": true,
|
|
4146
|
-
"type": {
|
|
4147
|
-
"primitive": "string"
|
|
4148
|
-
}
|
|
4149
4338
|
}
|
|
4150
4339
|
],
|
|
4151
4340
|
"symbolId": "src/bundler:BundlerProps"
|
|
4152
4341
|
},
|
|
4153
|
-
"@mrgrain/cdk-esbuild.
|
|
4154
|
-
"abstract": true,
|
|
4342
|
+
"@mrgrain/cdk-esbuild.CodeConfig": {
|
|
4155
4343
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4156
|
-
"
|
|
4344
|
+
"datatype": true,
|
|
4157
4345
|
"docs": {
|
|
4158
|
-
"stability": "stable"
|
|
4159
|
-
|
|
4160
|
-
"fqn": "@mrgrain/cdk-esbuild.Code",
|
|
4161
|
-
"initializer": {
|
|
4162
|
-
"docs": {
|
|
4163
|
-
"stability": "stable"
|
|
4164
|
-
},
|
|
4165
|
-
"locationInModule": {
|
|
4166
|
-
"filename": "src/code.ts",
|
|
4167
|
-
"line": 43
|
|
4168
|
-
},
|
|
4169
|
-
"parameters": [
|
|
4170
|
-
{
|
|
4171
|
-
"docs": {
|
|
4172
|
-
"remarks": "Use `props.buildOptions.absWorkingDir` if an absolute path is required.",
|
|
4173
|
-
"summary": "- Relative path to the asset code."
|
|
4174
|
-
},
|
|
4175
|
-
"name": "entryPoints",
|
|
4176
|
-
"type": {
|
|
4177
|
-
"union": {
|
|
4178
|
-
"types": [
|
|
4179
|
-
{
|
|
4180
|
-
"primitive": "string"
|
|
4181
|
-
},
|
|
4182
|
-
{
|
|
4183
|
-
"collection": {
|
|
4184
|
-
"elementtype": {
|
|
4185
|
-
"primitive": "string"
|
|
4186
|
-
},
|
|
4187
|
-
"kind": "array"
|
|
4188
|
-
}
|
|
4189
|
-
},
|
|
4190
|
-
{
|
|
4191
|
-
"collection": {
|
|
4192
|
-
"elementtype": {
|
|
4193
|
-
"primitive": "string"
|
|
4194
|
-
},
|
|
4195
|
-
"kind": "map"
|
|
4196
|
-
}
|
|
4197
|
-
}
|
|
4198
|
-
]
|
|
4199
|
-
}
|
|
4200
|
-
}
|
|
4201
|
-
},
|
|
4202
|
-
{
|
|
4203
|
-
"docs": {
|
|
4204
|
-
"summary": "- Asset properties."
|
|
4205
|
-
},
|
|
4206
|
-
"name": "props",
|
|
4207
|
-
"type": {
|
|
4208
|
-
"union": {
|
|
4209
|
-
"types": [
|
|
4210
|
-
{
|
|
4211
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4212
|
-
},
|
|
4213
|
-
{
|
|
4214
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4215
|
-
}
|
|
4216
|
-
]
|
|
4217
|
-
}
|
|
4218
|
-
}
|
|
4219
|
-
}
|
|
4220
|
-
]
|
|
4346
|
+
"stability": "stable",
|
|
4347
|
+
"summary": "Result of binding `Code` into a `Function`."
|
|
4221
4348
|
},
|
|
4222
|
-
"
|
|
4349
|
+
"fqn": "@mrgrain/cdk-esbuild.CodeConfig",
|
|
4350
|
+
"kind": "interface",
|
|
4223
4351
|
"locationInModule": {
|
|
4224
|
-
"filename": "
|
|
4225
|
-
"line":
|
|
4352
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4353
|
+
"line": 94
|
|
4226
4354
|
},
|
|
4227
|
-
"
|
|
4355
|
+
"name": "CodeConfig",
|
|
4356
|
+
"properties": [
|
|
4228
4357
|
{
|
|
4358
|
+
"abstract": true,
|
|
4229
4359
|
"docs": {
|
|
4360
|
+
"default": "- code is not an ECR container image",
|
|
4230
4361
|
"stability": "stable",
|
|
4231
|
-
"summary": "
|
|
4362
|
+
"summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
|
|
4232
4363
|
},
|
|
4364
|
+
"immutable": true,
|
|
4233
4365
|
"locationInModule": {
|
|
4234
|
-
"filename": "
|
|
4235
|
-
"line":
|
|
4366
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4367
|
+
"line": 115
|
|
4236
4368
|
},
|
|
4237
|
-
"name": "
|
|
4238
|
-
"
|
|
4239
|
-
"
|
|
4240
|
-
|
|
4241
|
-
"name": "scope",
|
|
4242
|
-
"type": {
|
|
4243
|
-
"fqn": "constructs.Construct"
|
|
4244
|
-
}
|
|
4245
|
-
}
|
|
4246
|
-
],
|
|
4247
|
-
"returns": {
|
|
4248
|
-
"type": {
|
|
4249
|
-
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
4250
|
-
}
|
|
4369
|
+
"name": "image",
|
|
4370
|
+
"optional": true,
|
|
4371
|
+
"type": {
|
|
4372
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeImageConfig"
|
|
4251
4373
|
}
|
|
4252
4374
|
},
|
|
4253
4375
|
{
|
|
4376
|
+
"abstract": true,
|
|
4254
4377
|
"docs": {
|
|
4255
|
-
"
|
|
4378
|
+
"default": "- code is not inline code",
|
|
4256
4379
|
"stability": "stable",
|
|
4257
|
-
"summary": "
|
|
4380
|
+
"summary": "Inline code (mutually exclusive with `s3Location` and `image`)."
|
|
4258
4381
|
},
|
|
4382
|
+
"immutable": true,
|
|
4259
4383
|
"locationInModule": {
|
|
4260
|
-
"filename": "
|
|
4261
|
-
"line":
|
|
4384
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4385
|
+
"line": 108
|
|
4262
4386
|
},
|
|
4263
|
-
"name": "
|
|
4264
|
-
"
|
|
4265
|
-
"
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
"type": {
|
|
4269
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
4270
|
-
}
|
|
4271
|
-
},
|
|
4272
|
-
{
|
|
4273
|
-
"name": "options",
|
|
4274
|
-
"optional": true,
|
|
4275
|
-
"type": {
|
|
4276
|
-
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4277
|
-
}
|
|
4278
|
-
}
|
|
4279
|
-
]
|
|
4387
|
+
"name": "inlineCode",
|
|
4388
|
+
"optional": true,
|
|
4389
|
+
"type": {
|
|
4390
|
+
"primitive": "string"
|
|
4391
|
+
}
|
|
4280
4392
|
},
|
|
4281
4393
|
{
|
|
4282
4394
|
"abstract": true,
|
|
4283
4395
|
"docs": {
|
|
4284
|
-
"
|
|
4285
|
-
},
|
|
4286
|
-
"locationInModule": {
|
|
4287
|
-
"filename": "src/code.ts",
|
|
4288
|
-
"line": 25
|
|
4289
|
-
},
|
|
4290
|
-
"name": "getAsset",
|
|
4291
|
-
"parameters": [
|
|
4292
|
-
{
|
|
4293
|
-
"name": "scope",
|
|
4294
|
-
"type": {
|
|
4295
|
-
"fqn": "constructs.Construct"
|
|
4296
|
-
}
|
|
4297
|
-
}
|
|
4298
|
-
],
|
|
4299
|
-
"protected": true,
|
|
4300
|
-
"returns": {
|
|
4301
|
-
"type": {
|
|
4302
|
-
"fqn": "@mrgrain/cdk-esbuild.Asset"
|
|
4303
|
-
}
|
|
4304
|
-
}
|
|
4305
|
-
}
|
|
4306
|
-
],
|
|
4307
|
-
"name": "Code",
|
|
4308
|
-
"properties": [
|
|
4309
|
-
{
|
|
4310
|
-
"docs": {
|
|
4311
|
-
"remarks": "Use `props.buildOptions.absWorkingDir` if an absolute path is required.",
|
|
4396
|
+
"default": "- code is not an s3 location",
|
|
4312
4397
|
"stability": "stable",
|
|
4313
|
-
"summary": "
|
|
4398
|
+
"summary": "The location of the code in S3 (mutually exclusive with `inlineCode` and `image`)."
|
|
4314
4399
|
},
|
|
4315
4400
|
"immutable": true,
|
|
4316
4401
|
"locationInModule": {
|
|
4317
|
-
"filename": "
|
|
4318
|
-
"line":
|
|
4402
|
+
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4403
|
+
"line": 101
|
|
4319
4404
|
},
|
|
4320
|
-
"name": "
|
|
4405
|
+
"name": "s3Location",
|
|
4406
|
+
"optional": true,
|
|
4321
4407
|
"type": {
|
|
4322
|
-
"
|
|
4323
|
-
"types": [
|
|
4324
|
-
{
|
|
4325
|
-
"primitive": "string"
|
|
4326
|
-
},
|
|
4327
|
-
{
|
|
4328
|
-
"collection": {
|
|
4329
|
-
"elementtype": {
|
|
4330
|
-
"primitive": "string"
|
|
4331
|
-
},
|
|
4332
|
-
"kind": "array"
|
|
4333
|
-
}
|
|
4334
|
-
},
|
|
4335
|
-
{
|
|
4336
|
-
"collection": {
|
|
4337
|
-
"elementtype": {
|
|
4338
|
-
"primitive": "string"
|
|
4339
|
-
},
|
|
4340
|
-
"kind": "map"
|
|
4341
|
-
}
|
|
4342
|
-
}
|
|
4343
|
-
]
|
|
4344
|
-
}
|
|
4408
|
+
"fqn": "aws-cdk-lib.aws_s3.Location"
|
|
4345
4409
|
}
|
|
4346
|
-
}
|
|
4410
|
+
}
|
|
4411
|
+
],
|
|
4412
|
+
"symbolId": "aws-lambda/lib/code:CodeConfig"
|
|
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": 602
|
|
4425
|
+
},
|
|
4426
|
+
"name": "CompilerOptions",
|
|
4427
|
+
"properties": [
|
|
4347
4428
|
{
|
|
4429
|
+
"abstract": true,
|
|
4348
4430
|
"docs": {
|
|
4349
4431
|
"stability": "stable"
|
|
4350
4432
|
},
|
|
4433
|
+
"immutable": true,
|
|
4351
4434
|
"locationInModule": {
|
|
4352
|
-
"filename": "src/
|
|
4353
|
-
"line":
|
|
4354
|
-
},
|
|
4355
|
-
"name": "asset",
|
|
4356
|
-
"protected": true,
|
|
4357
|
-
"type": {
|
|
4358
|
-
"fqn": "@mrgrain/cdk-esbuild.Asset"
|
|
4359
|
-
}
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
"docs": {
|
|
4363
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4364
|
-
"stability": "deprecated",
|
|
4365
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
4366
|
-
},
|
|
4367
|
-
"locationInModule": {
|
|
4368
|
-
"filename": "src/code.ts",
|
|
4369
|
-
"line": 36
|
|
4435
|
+
"filename": "src/esbuild-types.ts",
|
|
4436
|
+
"line": 606
|
|
4370
4437
|
},
|
|
4371
|
-
"name": "
|
|
4438
|
+
"name": "importsNotUsedAsValues",
|
|
4439
|
+
"optional": true,
|
|
4372
4440
|
"type": {
|
|
4373
|
-
"primitive": "
|
|
4441
|
+
"primitive": "string"
|
|
4374
4442
|
}
|
|
4375
4443
|
},
|
|
4376
4444
|
{
|
|
4445
|
+
"abstract": true,
|
|
4377
4446
|
"docs": {
|
|
4378
4447
|
"stability": "stable"
|
|
4379
4448
|
},
|
|
4449
|
+
"immutable": true,
|
|
4380
4450
|
"locationInModule": {
|
|
4381
|
-
"filename": "src/
|
|
4382
|
-
"line":
|
|
4451
|
+
"filename": "src/esbuild-types.ts",
|
|
4452
|
+
"line": 603
|
|
4383
4453
|
},
|
|
4384
|
-
"name": "
|
|
4385
|
-
"
|
|
4454
|
+
"name": "jsxFactory",
|
|
4455
|
+
"optional": true,
|
|
4386
4456
|
"type": {
|
|
4387
|
-
"
|
|
4457
|
+
"primitive": "string"
|
|
4388
4458
|
}
|
|
4389
|
-
}
|
|
4390
|
-
],
|
|
4391
|
-
"symbolId": "src/code:Code"
|
|
4392
|
-
},
|
|
4393
|
-
"@mrgrain/cdk-esbuild.CodeConfig": {
|
|
4394
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4395
|
-
"datatype": true,
|
|
4396
|
-
"docs": {
|
|
4397
|
-
"stability": "stable",
|
|
4398
|
-
"summary": "Result of binding `Code` into a `Function`."
|
|
4399
|
-
},
|
|
4400
|
-
"fqn": "@mrgrain/cdk-esbuild.CodeConfig",
|
|
4401
|
-
"kind": "interface",
|
|
4402
|
-
"locationInModule": {
|
|
4403
|
-
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4404
|
-
"line": 94
|
|
4405
|
-
},
|
|
4406
|
-
"name": "CodeConfig",
|
|
4407
|
-
"properties": [
|
|
4459
|
+
},
|
|
4408
4460
|
{
|
|
4409
4461
|
"abstract": true,
|
|
4410
4462
|
"docs": {
|
|
4411
|
-
"
|
|
4412
|
-
"stability": "stable",
|
|
4413
|
-
"summary": "Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`)."
|
|
4463
|
+
"stability": "stable"
|
|
4414
4464
|
},
|
|
4415
4465
|
"immutable": true,
|
|
4416
4466
|
"locationInModule": {
|
|
4417
|
-
"filename": "
|
|
4418
|
-
"line":
|
|
4467
|
+
"filename": "src/esbuild-types.ts",
|
|
4468
|
+
"line": 604
|
|
4419
4469
|
},
|
|
4420
|
-
"name": "
|
|
4470
|
+
"name": "jsxFragmentFactory",
|
|
4421
4471
|
"optional": true,
|
|
4422
4472
|
"type": {
|
|
4423
|
-
"
|
|
4473
|
+
"primitive": "string"
|
|
4424
4474
|
}
|
|
4425
4475
|
},
|
|
4426
4476
|
{
|
|
4427
4477
|
"abstract": true,
|
|
4428
4478
|
"docs": {
|
|
4429
|
-
"
|
|
4430
|
-
"stability": "stable",
|
|
4431
|
-
"summary": "Inline code (mutually exclusive with `s3Location` and `image`)."
|
|
4479
|
+
"stability": "stable"
|
|
4432
4480
|
},
|
|
4433
4481
|
"immutable": true,
|
|
4434
4482
|
"locationInModule": {
|
|
4435
|
-
"filename": "
|
|
4436
|
-
"line":
|
|
4483
|
+
"filename": "src/esbuild-types.ts",
|
|
4484
|
+
"line": 607
|
|
4437
4485
|
},
|
|
4438
|
-
"name": "
|
|
4486
|
+
"name": "preserveValueImports",
|
|
4439
4487
|
"optional": true,
|
|
4440
4488
|
"type": {
|
|
4441
|
-
"primitive": "
|
|
4489
|
+
"primitive": "boolean"
|
|
4442
4490
|
}
|
|
4443
4491
|
},
|
|
4444
4492
|
{
|
|
4445
4493
|
"abstract": true,
|
|
4446
4494
|
"docs": {
|
|
4447
|
-
"
|
|
4448
|
-
"stability": "stable",
|
|
4449
|
-
"summary": "The location of the code in S3 (mutually exclusive with `inlineCode` and `image`)."
|
|
4495
|
+
"stability": "stable"
|
|
4450
4496
|
},
|
|
4451
4497
|
"immutable": true,
|
|
4452
4498
|
"locationInModule": {
|
|
4453
|
-
"filename": "
|
|
4454
|
-
"line":
|
|
4499
|
+
"filename": "src/esbuild-types.ts",
|
|
4500
|
+
"line": 605
|
|
4455
4501
|
},
|
|
4456
|
-
"name": "
|
|
4502
|
+
"name": "useDefineForClassFields",
|
|
4457
4503
|
"optional": true,
|
|
4458
4504
|
"type": {
|
|
4459
|
-
"
|
|
4505
|
+
"primitive": "boolean"
|
|
4460
4506
|
}
|
|
4461
4507
|
}
|
|
4462
4508
|
],
|
|
4463
|
-
"symbolId": "
|
|
4509
|
+
"symbolId": "src/esbuild-types:CompilerOptions"
|
|
4510
|
+
},
|
|
4511
|
+
"@mrgrain/cdk-esbuild.EsbuildAsset": {
|
|
4512
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4513
|
+
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
4514
|
+
"docs": {
|
|
4515
|
+
"remarks": "You should always use `TypeScriptAsset` or `JavaScriptAsset`.",
|
|
4516
|
+
"stability": "experimental",
|
|
4517
|
+
"summary": "Represents a generic esbuild asset."
|
|
4518
|
+
},
|
|
4519
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4520
|
+
"initializer": {
|
|
4521
|
+
"docs": {
|
|
4522
|
+
"stability": "stable"
|
|
4523
|
+
},
|
|
4524
|
+
"locationInModule": {
|
|
4525
|
+
"filename": "src/asset.ts",
|
|
4526
|
+
"line": 57
|
|
4527
|
+
},
|
|
4528
|
+
"parameters": [
|
|
4529
|
+
{
|
|
4530
|
+
"name": "scope",
|
|
4531
|
+
"type": {
|
|
4532
|
+
"fqn": "constructs.Construct"
|
|
4533
|
+
}
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"name": "id",
|
|
4537
|
+
"type": {
|
|
4538
|
+
"primitive": "string"
|
|
4539
|
+
}
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
"name": "props",
|
|
4543
|
+
"type": {
|
|
4544
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4547
|
+
]
|
|
4548
|
+
},
|
|
4549
|
+
"kind": "class",
|
|
4550
|
+
"locationInModule": {
|
|
4551
|
+
"filename": "src/asset.ts",
|
|
4552
|
+
"line": 53
|
|
4553
|
+
},
|
|
4554
|
+
"name": "EsbuildAsset",
|
|
4555
|
+
"symbolId": "src/asset:EsbuildAsset"
|
|
4464
4556
|
},
|
|
4465
4557
|
"@mrgrain/cdk-esbuild.EsbuildBundler": {
|
|
4466
4558
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
@@ -4481,9 +4573,9 @@
|
|
|
4481
4573
|
"parameters": [
|
|
4482
4574
|
{
|
|
4483
4575
|
"docs": {
|
|
4484
|
-
"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'}`",
|
|
4485
4577
|
"stability": "experimental",
|
|
4486
|
-
"summary": "A
|
|
4578
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4487
4579
|
},
|
|
4488
4580
|
"name": "entryPoints",
|
|
4489
4581
|
"type": {
|
|
@@ -4515,7 +4607,7 @@
|
|
|
4515
4607
|
{
|
|
4516
4608
|
"docs": {
|
|
4517
4609
|
"stability": "experimental",
|
|
4518
|
-
"summary": "Props to change the
|
|
4610
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4519
4611
|
},
|
|
4520
4612
|
"name": "props",
|
|
4521
4613
|
"type": {
|
|
@@ -4533,14 +4625,14 @@
|
|
|
4533
4625
|
"properties": [
|
|
4534
4626
|
{
|
|
4535
4627
|
"docs": {
|
|
4536
|
-
"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'}`",
|
|
4537
4629
|
"stability": "experimental",
|
|
4538
|
-
"summary": "A
|
|
4630
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4539
4631
|
},
|
|
4540
4632
|
"immutable": true,
|
|
4541
4633
|
"locationInModule": {
|
|
4542
4634
|
"filename": "src/bundler.ts",
|
|
4543
|
-
"line":
|
|
4635
|
+
"line": 132
|
|
4544
4636
|
},
|
|
4545
4637
|
"name": "entryPoints",
|
|
4546
4638
|
"type": {
|
|
@@ -4602,12 +4694,12 @@
|
|
|
4602
4694
|
{
|
|
4603
4695
|
"docs": {
|
|
4604
4696
|
"stability": "experimental",
|
|
4605
|
-
"summary": "Props to change the
|
|
4697
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4606
4698
|
},
|
|
4607
4699
|
"immutable": true,
|
|
4608
4700
|
"locationInModule": {
|
|
4609
4701
|
"filename": "src/bundler.ts",
|
|
4610
|
-
"line":
|
|
4702
|
+
"line": 139
|
|
4611
4703
|
},
|
|
4612
4704
|
"name": "props",
|
|
4613
4705
|
"type": {
|
|
@@ -4617,109 +4709,72 @@
|
|
|
4617
4709
|
],
|
|
4618
4710
|
"symbolId": "src/bundler:EsbuildBundler"
|
|
4619
4711
|
},
|
|
4620
|
-
"@mrgrain/cdk-esbuild.
|
|
4712
|
+
"@mrgrain/cdk-esbuild.EsbuildCode": {
|
|
4621
4713
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4622
|
-
"base": "aws-cdk-lib.aws_lambda.
|
|
4714
|
+
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
4623
4715
|
"docs": {
|
|
4716
|
+
"remarks": "You should always use `TypeScriptCode` or `JavaScriptCode`.",
|
|
4624
4717
|
"stability": "experimental",
|
|
4625
|
-
"summary": "
|
|
4718
|
+
"summary": "Represents a generic esbuild code bundle."
|
|
4626
4719
|
},
|
|
4627
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4720
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4628
4721
|
"initializer": {
|
|
4629
4722
|
"docs": {
|
|
4630
4723
|
"stability": "experimental"
|
|
4631
4724
|
},
|
|
4632
4725
|
"locationInModule": {
|
|
4633
|
-
"filename": "src/
|
|
4634
|
-
"line":
|
|
4726
|
+
"filename": "src/code.ts",
|
|
4727
|
+
"line": 48
|
|
4635
4728
|
},
|
|
4636
4729
|
"parameters": [
|
|
4637
4730
|
{
|
|
4638
4731
|
"docs": {
|
|
4639
|
-
"
|
|
4640
|
-
"
|
|
4641
|
-
|
|
4642
|
-
"name": "code",
|
|
4643
|
-
"type": {
|
|
4644
|
-
"primitive": "string"
|
|
4645
|
-
}
|
|
4646
|
-
},
|
|
4647
|
-
{
|
|
4648
|
-
"docs": {
|
|
4649
|
-
"remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `props.transformOptions`:\n- `loader='js'`",
|
|
4650
|
-
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4651
|
-
"stability": "experimental",
|
|
4652
|
-
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
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'}`",
|
|
4733
|
+
"stability": "stable",
|
|
4734
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4653
4735
|
},
|
|
4654
|
-
"name": "
|
|
4655
|
-
"optional": true,
|
|
4736
|
+
"name": "entryPoints",
|
|
4656
4737
|
"type": {
|
|
4657
4738
|
"union": {
|
|
4658
4739
|
"types": [
|
|
4659
4740
|
{
|
|
4660
|
-
"
|
|
4741
|
+
"primitive": "string"
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"collection": {
|
|
4745
|
+
"elementtype": {
|
|
4746
|
+
"primitive": "string"
|
|
4747
|
+
},
|
|
4748
|
+
"kind": "array"
|
|
4749
|
+
}
|
|
4661
4750
|
},
|
|
4662
4751
|
{
|
|
4663
|
-
"
|
|
4752
|
+
"collection": {
|
|
4753
|
+
"elementtype": {
|
|
4754
|
+
"primitive": "string"
|
|
4755
|
+
},
|
|
4756
|
+
"kind": "map"
|
|
4757
|
+
}
|
|
4664
4758
|
}
|
|
4665
4759
|
]
|
|
4666
4760
|
}
|
|
4667
4761
|
}
|
|
4668
|
-
}
|
|
4669
|
-
]
|
|
4670
|
-
},
|
|
4671
|
-
"kind": "class",
|
|
4672
|
-
"locationInModule": {
|
|
4673
|
-
"filename": "src/inline-code.ts",
|
|
4674
|
-
"line": 83
|
|
4675
|
-
},
|
|
4676
|
-
"name": "InlineJavaScriptCode",
|
|
4677
|
-
"symbolId": "src/inline-code:InlineJavaScriptCode"
|
|
4678
|
-
},
|
|
4679
|
-
"@mrgrain/cdk-esbuild.InlineJsxCode": {
|
|
4680
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4681
|
-
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4682
|
-
"docs": {
|
|
4683
|
-
"stability": "experimental",
|
|
4684
|
-
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4685
|
-
},
|
|
4686
|
-
"fqn": "@mrgrain/cdk-esbuild.InlineJsxCode",
|
|
4687
|
-
"initializer": {
|
|
4688
|
-
"docs": {
|
|
4689
|
-
"stability": "experimental"
|
|
4690
|
-
},
|
|
4691
|
-
"locationInModule": {
|
|
4692
|
-
"filename": "src/inline-code.ts",
|
|
4693
|
-
"line": 115
|
|
4694
|
-
},
|
|
4695
|
-
"parameters": [
|
|
4696
|
-
{
|
|
4697
|
-
"docs": {
|
|
4698
|
-
"stability": "experimental",
|
|
4699
|
-
"summary": "The inline code to be transformed."
|
|
4700
|
-
},
|
|
4701
|
-
"name": "code",
|
|
4702
|
-
"type": {
|
|
4703
|
-
"primitive": "string"
|
|
4704
|
-
}
|
|
4705
4762
|
},
|
|
4706
4763
|
{
|
|
4707
4764
|
"docs": {
|
|
4708
|
-
"remarks": "
|
|
4709
|
-
"
|
|
4710
|
-
"
|
|
4711
|
-
"summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
|
|
4765
|
+
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4766
|
+
"stability": "stable",
|
|
4767
|
+
"summary": "Props to change the behavior of the bundler."
|
|
4712
4768
|
},
|
|
4713
4769
|
"name": "props",
|
|
4714
|
-
"optional": true,
|
|
4715
4770
|
"type": {
|
|
4716
4771
|
"union": {
|
|
4717
4772
|
"types": [
|
|
4718
4773
|
{
|
|
4719
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4774
|
+
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4720
4775
|
},
|
|
4721
4776
|
{
|
|
4722
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4777
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4723
4778
|
}
|
|
4724
4779
|
]
|
|
4725
4780
|
}
|
|
@@ -4729,32 +4784,669 @@
|
|
|
4729
4784
|
},
|
|
4730
4785
|
"kind": "class",
|
|
4731
4786
|
"locationInModule": {
|
|
4732
|
-
"filename": "src/
|
|
4733
|
-
"line":
|
|
4734
|
-
},
|
|
4735
|
-
"name": "InlineJsxCode",
|
|
4736
|
-
"symbolId": "src/inline-code:InlineJsxCode"
|
|
4737
|
-
},
|
|
4738
|
-
"@mrgrain/cdk-esbuild.InlineTsxCode": {
|
|
4739
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4740
|
-
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4741
|
-
"docs": {
|
|
4742
|
-
"stability": "experimental",
|
|
4743
|
-
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4787
|
+
"filename": "src/code.ts",
|
|
4788
|
+
"line": 26
|
|
4744
4789
|
},
|
|
4745
|
-
"
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4790
|
+
"methods": [
|
|
4791
|
+
{
|
|
4792
|
+
"docs": {
|
|
4793
|
+
"stability": "experimental",
|
|
4794
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
4795
|
+
},
|
|
4796
|
+
"locationInModule": {
|
|
4797
|
+
"filename": "src/code.ts",
|
|
4798
|
+
"line": 93
|
|
4799
|
+
},
|
|
4800
|
+
"name": "bind",
|
|
4801
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4802
|
+
"parameters": [
|
|
4803
|
+
{
|
|
4804
|
+
"name": "scope",
|
|
4805
|
+
"type": {
|
|
4806
|
+
"fqn": "constructs.Construct"
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
],
|
|
4810
|
+
"returns": {
|
|
4811
|
+
"type": {
|
|
4812
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
"docs": {
|
|
4818
|
+
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
4819
|
+
"stability": "stable",
|
|
4820
|
+
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
4821
|
+
},
|
|
4822
|
+
"locationInModule": {
|
|
4823
|
+
"filename": "src/code.ts",
|
|
4824
|
+
"line": 121
|
|
4825
|
+
},
|
|
4826
|
+
"name": "bindToResource",
|
|
4827
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
4828
|
+
"parameters": [
|
|
4829
|
+
{
|
|
4830
|
+
"name": "resource",
|
|
4831
|
+
"type": {
|
|
4832
|
+
"fqn": "aws-cdk-lib.CfnResource"
|
|
4833
|
+
}
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"name": "options",
|
|
4837
|
+
"optional": true,
|
|
4838
|
+
"type": {
|
|
4839
|
+
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
]
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
"docs": {
|
|
4846
|
+
"stability": "experimental"
|
|
4847
|
+
},
|
|
4848
|
+
"locationInModule": {
|
|
4849
|
+
"filename": "src/code.ts",
|
|
4850
|
+
"line": 29
|
|
4851
|
+
},
|
|
4852
|
+
"name": "getAsset",
|
|
4853
|
+
"parameters": [
|
|
4854
|
+
{
|
|
4855
|
+
"name": "scope",
|
|
4856
|
+
"type": {
|
|
4857
|
+
"fqn": "constructs.Construct"
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
],
|
|
4861
|
+
"protected": true,
|
|
4862
|
+
"returns": {
|
|
4863
|
+
"type": {
|
|
4864
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
],
|
|
4869
|
+
"name": "EsbuildCode",
|
|
4870
|
+
"properties": [
|
|
4871
|
+
{
|
|
4872
|
+
"docs": {
|
|
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'}`",
|
|
4874
|
+
"stability": "stable",
|
|
4875
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4876
|
+
},
|
|
4877
|
+
"immutable": true,
|
|
4878
|
+
"locationInModule": {
|
|
4879
|
+
"filename": "src/code.ts",
|
|
4880
|
+
"line": 65
|
|
4881
|
+
},
|
|
4882
|
+
"name": "entryPoints",
|
|
4883
|
+
"type": {
|
|
4884
|
+
"union": {
|
|
4885
|
+
"types": [
|
|
4886
|
+
{
|
|
4887
|
+
"primitive": "string"
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"collection": {
|
|
4891
|
+
"elementtype": {
|
|
4892
|
+
"primitive": "string"
|
|
4893
|
+
},
|
|
4894
|
+
"kind": "array"
|
|
4895
|
+
}
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
"collection": {
|
|
4899
|
+
"elementtype": {
|
|
4900
|
+
"primitive": "string"
|
|
4901
|
+
},
|
|
4902
|
+
"kind": "map"
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
]
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
"docs": {
|
|
4911
|
+
"stability": "experimental"
|
|
4912
|
+
},
|
|
4913
|
+
"locationInModule": {
|
|
4914
|
+
"filename": "src/code.ts",
|
|
4915
|
+
"line": 39
|
|
4916
|
+
},
|
|
4917
|
+
"name": "asset",
|
|
4918
|
+
"protected": true,
|
|
4919
|
+
"type": {
|
|
4920
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4921
|
+
}
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
"docs": {
|
|
4925
|
+
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
4926
|
+
"stability": "deprecated",
|
|
4927
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
4928
|
+
},
|
|
4929
|
+
"locationInModule": {
|
|
4930
|
+
"filename": "src/code.ts",
|
|
4931
|
+
"line": 46
|
|
4932
|
+
},
|
|
4933
|
+
"name": "isInline",
|
|
4934
|
+
"type": {
|
|
4935
|
+
"primitive": "boolean"
|
|
4936
|
+
}
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
"docs": {
|
|
4940
|
+
"stability": "experimental"
|
|
4941
|
+
},
|
|
4942
|
+
"locationInModule": {
|
|
4943
|
+
"filename": "src/code.ts",
|
|
4944
|
+
"line": 37
|
|
4945
|
+
},
|
|
4946
|
+
"name": "props",
|
|
4947
|
+
"protected": true,
|
|
4948
|
+
"type": {
|
|
4949
|
+
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4950
|
+
}
|
|
4951
|
+
}
|
|
4952
|
+
],
|
|
4953
|
+
"symbolId": "src/code:EsbuildCode"
|
|
4954
|
+
},
|
|
4955
|
+
"@mrgrain/cdk-esbuild.EsbuildProvider": {
|
|
4956
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
4957
|
+
"docs": {
|
|
4958
|
+
"stability": "stable",
|
|
4959
|
+
"summary": "Default esbuild implementation calling esbuild's JavaScript API."
|
|
4960
|
+
},
|
|
4961
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProvider",
|
|
4962
|
+
"initializer": {
|
|
4963
|
+
"docs": {
|
|
4964
|
+
"stability": "stable"
|
|
4965
|
+
},
|
|
4966
|
+
"locationInModule": {
|
|
4967
|
+
"filename": "src/provider.ts",
|
|
4968
|
+
"line": 139
|
|
4969
|
+
},
|
|
4970
|
+
"parameters": [
|
|
4971
|
+
{
|
|
4972
|
+
"name": "props",
|
|
4973
|
+
"optional": true,
|
|
4974
|
+
"type": {
|
|
4975
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProviderProps"
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
]
|
|
4979
|
+
},
|
|
4980
|
+
"interfaces": [
|
|
4981
|
+
"@mrgrain/cdk-esbuild.IBuildProvider",
|
|
4982
|
+
"@mrgrain/cdk-esbuild.ITransformProvider"
|
|
4983
|
+
],
|
|
4984
|
+
"kind": "class",
|
|
4985
|
+
"locationInModule": {
|
|
4986
|
+
"filename": "src/provider.ts",
|
|
4987
|
+
"line": 95
|
|
4988
|
+
},
|
|
4989
|
+
"methods": [
|
|
4990
|
+
{
|
|
4991
|
+
"docs": {
|
|
4992
|
+
"stability": "stable",
|
|
4993
|
+
"summary": "Get the default implementation for the Build API."
|
|
4994
|
+
},
|
|
4995
|
+
"locationInModule": {
|
|
4996
|
+
"filename": "src/provider.ts",
|
|
4997
|
+
"line": 118
|
|
4998
|
+
},
|
|
4999
|
+
"name": "defaultBuildProvider",
|
|
5000
|
+
"returns": {
|
|
5001
|
+
"type": {
|
|
5002
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5003
|
+
}
|
|
5004
|
+
},
|
|
5005
|
+
"static": true
|
|
5006
|
+
},
|
|
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": {
|
|
5018
|
+
"type": {
|
|
5019
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5020
|
+
}
|
|
5021
|
+
},
|
|
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
|
+
}
|
|
5123
|
+
},
|
|
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": {
|
|
5220
|
+
"optional": true,
|
|
5221
|
+
"type": {
|
|
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"
|
|
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"
|
|
4749
5441
|
},
|
|
4750
5442
|
"locationInModule": {
|
|
4751
5443
|
"filename": "src/inline-code.ts",
|
|
4752
|
-
"line":
|
|
5444
|
+
"line": 93
|
|
4753
5445
|
},
|
|
4754
5446
|
"parameters": [
|
|
4755
5447
|
{
|
|
4756
5448
|
"docs": {
|
|
4757
|
-
"stability": "
|
|
5449
|
+
"stability": "stable",
|
|
4758
5450
|
"summary": "The inline code to be transformed."
|
|
4759
5451
|
},
|
|
4760
5452
|
"name": "code",
|
|
@@ -4764,24 +5456,15 @@
|
|
|
4764
5456
|
},
|
|
4765
5457
|
{
|
|
4766
5458
|
"docs": {
|
|
4767
|
-
"remarks": "
|
|
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",
|
|
4768
5460
|
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4769
|
-
"stability": "
|
|
4770
|
-
"summary": "
|
|
5461
|
+
"stability": "stable",
|
|
5462
|
+
"summary": "Props to change the behavior of the transformer."
|
|
4771
5463
|
},
|
|
4772
5464
|
"name": "props",
|
|
4773
5465
|
"optional": true,
|
|
4774
5466
|
"type": {
|
|
4775
|
-
"
|
|
4776
|
-
"types": [
|
|
4777
|
-
{
|
|
4778
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
4779
|
-
},
|
|
4780
|
-
{
|
|
4781
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4782
|
-
}
|
|
4783
|
-
]
|
|
4784
|
-
}
|
|
5467
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4785
5468
|
}
|
|
4786
5469
|
}
|
|
4787
5470
|
]
|
|
@@ -4789,31 +5472,76 @@
|
|
|
4789
5472
|
"kind": "class",
|
|
4790
5473
|
"locationInModule": {
|
|
4791
5474
|
"filename": "src/inline-code.ts",
|
|
4792
|
-
"line":
|
|
5475
|
+
"line": 92
|
|
4793
5476
|
},
|
|
4794
|
-
"
|
|
4795
|
-
|
|
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"
|
|
4796
5524
|
},
|
|
4797
5525
|
"@mrgrain/cdk-esbuild.InlineTypeScriptCode": {
|
|
4798
5526
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4799
5527
|
"base": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
4800
5528
|
"docs": {
|
|
4801
|
-
"stability": "
|
|
5529
|
+
"stability": "stable",
|
|
4802
5530
|
"summary": "An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation."
|
|
4803
5531
|
},
|
|
4804
5532
|
"fqn": "@mrgrain/cdk-esbuild.InlineTypeScriptCode",
|
|
4805
5533
|
"initializer": {
|
|
4806
5534
|
"docs": {
|
|
4807
|
-
"stability": "
|
|
5535
|
+
"stability": "stable"
|
|
4808
5536
|
},
|
|
4809
5537
|
"locationInModule": {
|
|
4810
5538
|
"filename": "src/inline-code.ts",
|
|
4811
|
-
"line":
|
|
5539
|
+
"line": 124
|
|
4812
5540
|
},
|
|
4813
5541
|
"parameters": [
|
|
4814
5542
|
{
|
|
4815
5543
|
"docs": {
|
|
4816
|
-
"stability": "
|
|
5544
|
+
"stability": "stable",
|
|
4817
5545
|
"summary": "The inline code to be transformed."
|
|
4818
5546
|
},
|
|
4819
5547
|
"name": "code",
|
|
@@ -4823,24 +5551,15 @@
|
|
|
4823
5551
|
},
|
|
4824
5552
|
{
|
|
4825
5553
|
"docs": {
|
|
4826
|
-
"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",
|
|
4827
5555
|
"see": "https://esbuild.github.io/api/#transform-api",
|
|
4828
|
-
"stability": "
|
|
4829
|
-
"summary": "
|
|
5556
|
+
"stability": "stable",
|
|
5557
|
+
"summary": "Props to change the behavior of the transformer."
|
|
4830
5558
|
},
|
|
4831
5559
|
"name": "props",
|
|
4832
5560
|
"optional": true,
|
|
4833
5561
|
"type": {
|
|
4834
|
-
"
|
|
4835
|
-
"types": [
|
|
4836
|
-
{
|
|
4837
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
4838
|
-
},
|
|
4839
|
-
{
|
|
4840
|
-
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4841
|
-
}
|
|
4842
|
-
]
|
|
4843
|
-
}
|
|
5562
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformerProps"
|
|
4844
5563
|
}
|
|
4845
5564
|
}
|
|
4846
5565
|
]
|
|
@@ -4848,14 +5567,59 @@
|
|
|
4848
5567
|
"kind": "class",
|
|
4849
5568
|
"locationInModule": {
|
|
4850
5569
|
"filename": "src/inline-code.ts",
|
|
4851
|
-
"line":
|
|
5570
|
+
"line": 123
|
|
4852
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"
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
],
|
|
5592
|
+
"returns": {
|
|
5593
|
+
"type": {
|
|
5594
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
5595
|
+
}
|
|
5596
|
+
}
|
|
5597
|
+
}
|
|
5598
|
+
],
|
|
4853
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
|
+
],
|
|
4854
5618
|
"symbolId": "src/inline-code:InlineTypeScriptCode"
|
|
4855
5619
|
},
|
|
4856
5620
|
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
4857
5621
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4858
|
-
"base": "@mrgrain/cdk-esbuild.
|
|
5622
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4859
5623
|
"docs": {
|
|
4860
5624
|
"remarks": "The asset can be used by other constructs.",
|
|
4861
5625
|
"stability": "stable",
|
|
@@ -4868,7 +5632,7 @@
|
|
|
4868
5632
|
},
|
|
4869
5633
|
"locationInModule": {
|
|
4870
5634
|
"filename": "src/asset.ts",
|
|
4871
|
-
"line":
|
|
5635
|
+
"line": 57
|
|
4872
5636
|
},
|
|
4873
5637
|
"parameters": [
|
|
4874
5638
|
{
|
|
@@ -4894,14 +5658,14 @@
|
|
|
4894
5658
|
"kind": "class",
|
|
4895
5659
|
"locationInModule": {
|
|
4896
5660
|
"filename": "src/asset.ts",
|
|
4897
|
-
"line":
|
|
5661
|
+
"line": 126
|
|
4898
5662
|
},
|
|
4899
5663
|
"name": "JavaScriptAsset",
|
|
4900
5664
|
"symbolId": "src/asset:JavaScriptAsset"
|
|
4901
5665
|
},
|
|
4902
5666
|
"@mrgrain/cdk-esbuild.JavaScriptCode": {
|
|
4903
5667
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4904
|
-
"base": "@mrgrain/cdk-esbuild.
|
|
5668
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4905
5669
|
"docs": {
|
|
4906
5670
|
"stability": "stable",
|
|
4907
5671
|
"summary": "Represents the deployed JavaScript Code."
|
|
@@ -4913,14 +5677,14 @@
|
|
|
4913
5677
|
},
|
|
4914
5678
|
"locationInModule": {
|
|
4915
5679
|
"filename": "src/code.ts",
|
|
4916
|
-
"line":
|
|
5680
|
+
"line": 145
|
|
4917
5681
|
},
|
|
4918
5682
|
"parameters": [
|
|
4919
5683
|
{
|
|
4920
5684
|
"docs": {
|
|
4921
|
-
"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'}`",
|
|
4922
5686
|
"stability": "stable",
|
|
4923
|
-
"summary": "A
|
|
5687
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4924
5688
|
},
|
|
4925
5689
|
"name": "entryPoints",
|
|
4926
5690
|
"type": {
|
|
@@ -4966,7 +5730,7 @@
|
|
|
4966
5730
|
"kind": "class",
|
|
4967
5731
|
"locationInModule": {
|
|
4968
5732
|
"filename": "src/code.ts",
|
|
4969
|
-
"line":
|
|
5733
|
+
"line": 136
|
|
4970
5734
|
},
|
|
4971
5735
|
"methods": [
|
|
4972
5736
|
{
|
|
@@ -4975,10 +5739,10 @@
|
|
|
4975
5739
|
},
|
|
4976
5740
|
"locationInModule": {
|
|
4977
5741
|
"filename": "src/code.ts",
|
|
4978
|
-
"line":
|
|
5742
|
+
"line": 137
|
|
4979
5743
|
},
|
|
4980
5744
|
"name": "getAsset",
|
|
4981
|
-
"overrides": "@mrgrain/cdk-esbuild.
|
|
5745
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
4982
5746
|
"parameters": [
|
|
4983
5747
|
{
|
|
4984
5748
|
"name": "scope",
|
|
@@ -4990,7 +5754,7 @@
|
|
|
4990
5754
|
"protected": true,
|
|
4991
5755
|
"returns": {
|
|
4992
5756
|
"type": {
|
|
4993
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
5757
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
4994
5758
|
}
|
|
4995
5759
|
}
|
|
4996
5760
|
}
|
|
@@ -5011,7 +5775,7 @@
|
|
|
5011
5775
|
"kind": "interface",
|
|
5012
5776
|
"locationInModule": {
|
|
5013
5777
|
"filename": "src/code.ts",
|
|
5014
|
-
"line":
|
|
5778
|
+
"line": 16
|
|
5015
5779
|
},
|
|
5016
5780
|
"name": "JavaScriptCodeProps",
|
|
5017
5781
|
"properties": [
|
|
@@ -5048,10 +5812,15 @@
|
|
|
5048
5812
|
},
|
|
5049
5813
|
"locationInModule": {
|
|
5050
5814
|
"filename": "src/source.ts",
|
|
5051
|
-
"line":
|
|
5815
|
+
"line": 113
|
|
5052
5816
|
},
|
|
5053
5817
|
"parameters": [
|
|
5054
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
|
+
},
|
|
5055
5824
|
"name": "entryPoints",
|
|
5056
5825
|
"type": {
|
|
5057
5826
|
"union": {
|
|
@@ -5080,6 +5849,11 @@
|
|
|
5080
5849
|
}
|
|
5081
5850
|
},
|
|
5082
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
|
+
},
|
|
5083
5857
|
"name": "props",
|
|
5084
5858
|
"optional": true,
|
|
5085
5859
|
"type": {
|
|
@@ -5094,7 +5868,7 @@
|
|
|
5094
5868
|
"kind": "class",
|
|
5095
5869
|
"locationInModule": {
|
|
5096
5870
|
"filename": "src/source.ts",
|
|
5097
|
-
"line":
|
|
5871
|
+
"line": 107
|
|
5098
5872
|
},
|
|
5099
5873
|
"methods": [
|
|
5100
5874
|
{
|
|
@@ -5104,7 +5878,7 @@
|
|
|
5104
5878
|
},
|
|
5105
5879
|
"locationInModule": {
|
|
5106
5880
|
"filename": "src/source.ts",
|
|
5107
|
-
"line":
|
|
5881
|
+
"line": 73
|
|
5108
5882
|
},
|
|
5109
5883
|
"name": "bind",
|
|
5110
5884
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -5161,7 +5935,7 @@
|
|
|
5161
5935
|
},
|
|
5162
5936
|
"locationInModule": {
|
|
5163
5937
|
"filename": "src/source.ts",
|
|
5164
|
-
"line":
|
|
5938
|
+
"line": 111
|
|
5165
5939
|
},
|
|
5166
5940
|
"name": "assetClass",
|
|
5167
5941
|
"type": {
|
|
@@ -5223,6 +5997,80 @@
|
|
|
5223
5997
|
],
|
|
5224
5998
|
"symbolId": "src/source:JavaScriptSourceProps"
|
|
5225
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
|
+
},
|
|
5226
6074
|
"@mrgrain/cdk-esbuild.TransformOptions": {
|
|
5227
6075
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5228
6076
|
"datatype": true,
|
|
@@ -5233,7 +6081,7 @@
|
|
|
5233
6081
|
"kind": "interface",
|
|
5234
6082
|
"locationInModule": {
|
|
5235
6083
|
"filename": "src/esbuild-types.ts",
|
|
5236
|
-
"line":
|
|
6084
|
+
"line": 242
|
|
5237
6085
|
},
|
|
5238
6086
|
"name": "TransformOptions",
|
|
5239
6087
|
"properties": [
|
|
@@ -5245,7 +6093,7 @@
|
|
|
5245
6093
|
"immutable": true,
|
|
5246
6094
|
"locationInModule": {
|
|
5247
6095
|
"filename": "src/esbuild-types.ts",
|
|
5248
|
-
"line":
|
|
6096
|
+
"line": 247
|
|
5249
6097
|
},
|
|
5250
6098
|
"name": "banner",
|
|
5251
6099
|
"optional": true,
|
|
@@ -5262,7 +6110,7 @@
|
|
|
5262
6110
|
"immutable": true,
|
|
5263
6111
|
"locationInModule": {
|
|
5264
6112
|
"filename": "src/esbuild-types.ts",
|
|
5265
|
-
"line":
|
|
6113
|
+
"line": 50
|
|
5266
6114
|
},
|
|
5267
6115
|
"name": "charset",
|
|
5268
6116
|
"optional": true,
|
|
@@ -5279,7 +6127,7 @@
|
|
|
5279
6127
|
"immutable": true,
|
|
5280
6128
|
"locationInModule": {
|
|
5281
6129
|
"filename": "src/esbuild-types.ts",
|
|
5282
|
-
"line":
|
|
6130
|
+
"line": 77
|
|
5283
6131
|
},
|
|
5284
6132
|
"name": "color",
|
|
5285
6133
|
"optional": true,
|
|
@@ -5296,7 +6144,7 @@
|
|
|
5296
6144
|
"immutable": true,
|
|
5297
6145
|
"locationInModule": {
|
|
5298
6146
|
"filename": "src/esbuild-types.ts",
|
|
5299
|
-
"line":
|
|
6147
|
+
"line": 70
|
|
5300
6148
|
},
|
|
5301
6149
|
"name": "define",
|
|
5302
6150
|
"optional": true,
|
|
@@ -5318,7 +6166,7 @@
|
|
|
5318
6166
|
"immutable": true,
|
|
5319
6167
|
"locationInModule": {
|
|
5320
6168
|
"filename": "src/esbuild-types.ts",
|
|
5321
|
-
"line":
|
|
6169
|
+
"line": 40
|
|
5322
6170
|
},
|
|
5323
6171
|
"name": "drop",
|
|
5324
6172
|
"optional": true,
|
|
@@ -5339,7 +6187,7 @@
|
|
|
5339
6187
|
"immutable": true,
|
|
5340
6188
|
"locationInModule": {
|
|
5341
6189
|
"filename": "src/esbuild-types.ts",
|
|
5342
|
-
"line":
|
|
6190
|
+
"line": 248
|
|
5343
6191
|
},
|
|
5344
6192
|
"name": "footer",
|
|
5345
6193
|
"optional": true,
|
|
@@ -5368,7 +6216,7 @@
|
|
|
5368
6216
|
"abstract": true,
|
|
5369
6217
|
"docs": {
|
|
5370
6218
|
"stability": "stable",
|
|
5371
|
-
"summary": "Documentation: https://esbuild.github.io/api/#
|
|
6219
|
+
"summary": "Documentation: https://esbuild.github.io/api/#global-name."
|
|
5372
6220
|
},
|
|
5373
6221
|
"immutable": true,
|
|
5374
6222
|
"locationInModule": {
|
|
@@ -5390,7 +6238,7 @@
|
|
|
5390
6238
|
"immutable": true,
|
|
5391
6239
|
"locationInModule": {
|
|
5392
6240
|
"filename": "src/esbuild-types.ts",
|
|
5393
|
-
"line":
|
|
6241
|
+
"line": 54
|
|
5394
6242
|
},
|
|
5395
6243
|
"name": "ignoreAnnotations",
|
|
5396
6244
|
"optional": true,
|
|
@@ -5407,7 +6255,7 @@
|
|
|
5407
6255
|
"immutable": true,
|
|
5408
6256
|
"locationInModule": {
|
|
5409
6257
|
"filename": "src/esbuild-types.ts",
|
|
5410
|
-
"line":
|
|
6258
|
+
"line": 57
|
|
5411
6259
|
},
|
|
5412
6260
|
"name": "jsx",
|
|
5413
6261
|
"optional": true,
|
|
@@ -5415,6 +6263,23 @@
|
|
|
5415
6263
|
"primitive": "string"
|
|
5416
6264
|
}
|
|
5417
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
|
+
},
|
|
5418
6283
|
{
|
|
5419
6284
|
"abstract": true,
|
|
5420
6285
|
"docs": {
|
|
@@ -5424,7 +6289,7 @@
|
|
|
5424
6289
|
"immutable": true,
|
|
5425
6290
|
"locationInModule": {
|
|
5426
6291
|
"filename": "src/esbuild-types.ts",
|
|
5427
|
-
"line":
|
|
6292
|
+
"line": 59
|
|
5428
6293
|
},
|
|
5429
6294
|
"name": "jsxFactory",
|
|
5430
6295
|
"optional": true,
|
|
@@ -5441,7 +6306,7 @@
|
|
|
5441
6306
|
"immutable": true,
|
|
5442
6307
|
"locationInModule": {
|
|
5443
6308
|
"filename": "src/esbuild-types.ts",
|
|
5444
|
-
"line":
|
|
6309
|
+
"line": 61
|
|
5445
6310
|
},
|
|
5446
6311
|
"name": "jsxFragment",
|
|
5447
6312
|
"optional": true,
|
|
@@ -5449,6 +6314,40 @@
|
|
|
5449
6314
|
"primitive": "string"
|
|
5450
6315
|
}
|
|
5451
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
|
+
},
|
|
5452
6351
|
{
|
|
5453
6352
|
"abstract": true,
|
|
5454
6353
|
"docs": {
|
|
@@ -5458,7 +6357,7 @@
|
|
|
5458
6357
|
"immutable": true,
|
|
5459
6358
|
"locationInModule": {
|
|
5460
6359
|
"filename": "src/esbuild-types.ts",
|
|
5461
|
-
"line":
|
|
6360
|
+
"line": 74
|
|
5462
6361
|
},
|
|
5463
6362
|
"name": "keepNames",
|
|
5464
6363
|
"optional": true,
|
|
@@ -5491,7 +6390,7 @@
|
|
|
5491
6390
|
"immutable": true,
|
|
5492
6391
|
"locationInModule": {
|
|
5493
6392
|
"filename": "src/esbuild-types.ts",
|
|
5494
|
-
"line":
|
|
6393
|
+
"line": 246
|
|
5495
6394
|
},
|
|
5496
6395
|
"name": "loader",
|
|
5497
6396
|
"optional": true,
|
|
@@ -5508,7 +6407,7 @@
|
|
|
5508
6407
|
"immutable": true,
|
|
5509
6408
|
"locationInModule": {
|
|
5510
6409
|
"filename": "src/esbuild-types.ts",
|
|
5511
|
-
"line":
|
|
6410
|
+
"line": 79
|
|
5512
6411
|
},
|
|
5513
6412
|
"name": "logLevel",
|
|
5514
6413
|
"optional": true,
|
|
@@ -5525,7 +6424,7 @@
|
|
|
5525
6424
|
"immutable": true,
|
|
5526
6425
|
"locationInModule": {
|
|
5527
6426
|
"filename": "src/esbuild-types.ts",
|
|
5528
|
-
"line":
|
|
6427
|
+
"line": 81
|
|
5529
6428
|
},
|
|
5530
6429
|
"name": "logLimit",
|
|
5531
6430
|
"optional": true,
|
|
@@ -5542,7 +6441,7 @@
|
|
|
5542
6441
|
"immutable": true,
|
|
5543
6442
|
"locationInModule": {
|
|
5544
6443
|
"filename": "src/esbuild-types.ts",
|
|
5545
|
-
"line":
|
|
6444
|
+
"line": 83
|
|
5546
6445
|
},
|
|
5547
6446
|
"name": "logOverride",
|
|
5548
6447
|
"optional": true,
|
|
@@ -5564,7 +6463,7 @@
|
|
|
5564
6463
|
"immutable": true,
|
|
5565
6464
|
"locationInModule": {
|
|
5566
6465
|
"filename": "src/esbuild-types.ts",
|
|
5567
|
-
"line":
|
|
6466
|
+
"line": 38
|
|
5568
6467
|
},
|
|
5569
6468
|
"name": "mangleCache",
|
|
5570
6469
|
"optional": true,
|
|
@@ -5595,7 +6494,7 @@
|
|
|
5595
6494
|
"immutable": true,
|
|
5596
6495
|
"locationInModule": {
|
|
5597
6496
|
"filename": "src/esbuild-types.ts",
|
|
5598
|
-
"line":
|
|
6497
|
+
"line": 32
|
|
5599
6498
|
},
|
|
5600
6499
|
"name": "mangleProps",
|
|
5601
6500
|
"optional": true,
|
|
@@ -5612,7 +6511,7 @@
|
|
|
5612
6511
|
"immutable": true,
|
|
5613
6512
|
"locationInModule": {
|
|
5614
6513
|
"filename": "src/esbuild-types.ts",
|
|
5615
|
-
"line":
|
|
6514
|
+
"line": 36
|
|
5616
6515
|
},
|
|
5617
6516
|
"name": "mangleQuoted",
|
|
5618
6517
|
"optional": true,
|
|
@@ -5629,7 +6528,7 @@
|
|
|
5629
6528
|
"immutable": true,
|
|
5630
6529
|
"locationInModule": {
|
|
5631
6530
|
"filename": "src/esbuild-types.ts",
|
|
5632
|
-
"line":
|
|
6531
|
+
"line": 42
|
|
5633
6532
|
},
|
|
5634
6533
|
"name": "minify",
|
|
5635
6534
|
"optional": true,
|
|
@@ -5646,7 +6545,7 @@
|
|
|
5646
6545
|
"immutable": true,
|
|
5647
6546
|
"locationInModule": {
|
|
5648
6547
|
"filename": "src/esbuild-types.ts",
|
|
5649
|
-
"line":
|
|
6548
|
+
"line": 46
|
|
5650
6549
|
},
|
|
5651
6550
|
"name": "minifyIdentifiers",
|
|
5652
6551
|
"optional": true,
|
|
@@ -5663,7 +6562,7 @@
|
|
|
5663
6562
|
"immutable": true,
|
|
5664
6563
|
"locationInModule": {
|
|
5665
6564
|
"filename": "src/esbuild-types.ts",
|
|
5666
|
-
"line":
|
|
6565
|
+
"line": 48
|
|
5667
6566
|
},
|
|
5668
6567
|
"name": "minifySyntax",
|
|
5669
6568
|
"optional": true,
|
|
@@ -5680,7 +6579,7 @@
|
|
|
5680
6579
|
"immutable": true,
|
|
5681
6580
|
"locationInModule": {
|
|
5682
6581
|
"filename": "src/esbuild-types.ts",
|
|
5683
|
-
"line":
|
|
6582
|
+
"line": 44
|
|
5684
6583
|
},
|
|
5685
6584
|
"name": "minifyWhitespace",
|
|
5686
6585
|
"optional": true,
|
|
@@ -5688,6 +6587,23 @@
|
|
|
5688
6587
|
"primitive": "boolean"
|
|
5689
6588
|
}
|
|
5690
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
|
+
},
|
|
5691
6607
|
{
|
|
5692
6608
|
"abstract": true,
|
|
5693
6609
|
"docs": {
|
|
@@ -5697,7 +6613,7 @@
|
|
|
5697
6613
|
"immutable": true,
|
|
5698
6614
|
"locationInModule": {
|
|
5699
6615
|
"filename": "src/esbuild-types.ts",
|
|
5700
|
-
"line":
|
|
6616
|
+
"line": 72
|
|
5701
6617
|
},
|
|
5702
6618
|
"name": "pure",
|
|
5703
6619
|
"optional": true,
|
|
@@ -5719,7 +6635,7 @@
|
|
|
5719
6635
|
"immutable": true,
|
|
5720
6636
|
"locationInModule": {
|
|
5721
6637
|
"filename": "src/esbuild-types.ts",
|
|
5722
|
-
"line":
|
|
6638
|
+
"line": 34
|
|
5723
6639
|
},
|
|
5724
6640
|
"name": "reserveProps",
|
|
5725
6641
|
"optional": true,
|
|
@@ -5735,7 +6651,7 @@
|
|
|
5735
6651
|
"immutable": true,
|
|
5736
6652
|
"locationInModule": {
|
|
5737
6653
|
"filename": "src/esbuild-types.ts",
|
|
5738
|
-
"line":
|
|
6654
|
+
"line": 245
|
|
5739
6655
|
},
|
|
5740
6656
|
"name": "sourcefile",
|
|
5741
6657
|
"optional": true,
|
|
@@ -5803,6 +6719,28 @@
|
|
|
5803
6719
|
"primitive": "boolean"
|
|
5804
6720
|
}
|
|
5805
6721
|
},
|
|
6722
|
+
{
|
|
6723
|
+
"abstract": true,
|
|
6724
|
+
"docs": {
|
|
6725
|
+
"stability": "stable",
|
|
6726
|
+
"summary": "Documentation: https://esbuild.github.io/api/#supported."
|
|
6727
|
+
},
|
|
6728
|
+
"immutable": true,
|
|
6729
|
+
"locationInModule": {
|
|
6730
|
+
"filename": "src/esbuild-types.ts",
|
|
6731
|
+
"line": 27
|
|
6732
|
+
},
|
|
6733
|
+
"name": "supported",
|
|
6734
|
+
"optional": true,
|
|
6735
|
+
"type": {
|
|
6736
|
+
"collection": {
|
|
6737
|
+
"elementtype": {
|
|
6738
|
+
"primitive": "boolean"
|
|
6739
|
+
},
|
|
6740
|
+
"kind": "map"
|
|
6741
|
+
}
|
|
6742
|
+
}
|
|
6743
|
+
},
|
|
5806
6744
|
{
|
|
5807
6745
|
"abstract": true,
|
|
5808
6746
|
"docs": {
|
|
@@ -5843,7 +6781,7 @@
|
|
|
5843
6781
|
"immutable": true,
|
|
5844
6782
|
"locationInModule": {
|
|
5845
6783
|
"filename": "src/esbuild-types.ts",
|
|
5846
|
-
"line":
|
|
6784
|
+
"line": 52
|
|
5847
6785
|
},
|
|
5848
6786
|
"name": "treeShaking",
|
|
5849
6787
|
"optional": true,
|
|
@@ -5859,12 +6797,21 @@
|
|
|
5859
6797
|
"immutable": true,
|
|
5860
6798
|
"locationInModule": {
|
|
5861
6799
|
"filename": "src/esbuild-types.ts",
|
|
5862
|
-
"line":
|
|
6800
|
+
"line": 243
|
|
5863
6801
|
},
|
|
5864
6802
|
"name": "tsconfigRaw",
|
|
5865
6803
|
"optional": true,
|
|
5866
6804
|
"type": {
|
|
5867
|
-
"
|
|
6805
|
+
"union": {
|
|
6806
|
+
"types": [
|
|
6807
|
+
{
|
|
6808
|
+
"primitive": "string"
|
|
6809
|
+
},
|
|
6810
|
+
{
|
|
6811
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigOptions"
|
|
6812
|
+
}
|
|
6813
|
+
]
|
|
6814
|
+
}
|
|
5868
6815
|
}
|
|
5869
6816
|
}
|
|
5870
6817
|
],
|
|
@@ -5874,65 +6821,93 @@
|
|
|
5874
6821
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5875
6822
|
"datatype": true,
|
|
5876
6823
|
"docs": {
|
|
5877
|
-
"stability": "
|
|
6824
|
+
"stability": "stable"
|
|
5878
6825
|
},
|
|
5879
6826
|
"fqn": "@mrgrain/cdk-esbuild.TransformerProps",
|
|
5880
6827
|
"kind": "interface",
|
|
5881
6828
|
"locationInModule": {
|
|
5882
6829
|
"filename": "src/inline-code.ts",
|
|
5883
|
-
"line":
|
|
6830
|
+
"line": 11
|
|
5884
6831
|
},
|
|
5885
6832
|
"name": "TransformerProps",
|
|
5886
6833
|
"properties": [
|
|
5887
6834
|
{
|
|
5888
6835
|
"abstract": true,
|
|
5889
6836
|
"docs": {
|
|
5890
|
-
"
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
"default": "esbuild.transformSync",
|
|
5895
|
-
"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.",
|
|
5896
|
-
"returns": "esbuild.TransformResult",
|
|
5897
|
-
"stability": "experimental",
|
|
5898
|
-
"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."
|
|
5899
6841
|
},
|
|
5900
6842
|
"immutable": true,
|
|
5901
6843
|
"locationInModule": {
|
|
5902
6844
|
"filename": "src/inline-code.ts",
|
|
5903
|
-
"line":
|
|
6845
|
+
"line": 18
|
|
5904
6846
|
},
|
|
5905
|
-
"name": "
|
|
6847
|
+
"name": "transformOptions",
|
|
5906
6848
|
"optional": true,
|
|
5907
6849
|
"type": {
|
|
5908
|
-
"
|
|
6850
|
+
"fqn": "@mrgrain/cdk-esbuild.TransformOptions"
|
|
5909
6851
|
}
|
|
5910
6852
|
},
|
|
5911
6853
|
{
|
|
5912
6854
|
"abstract": true,
|
|
5913
6855
|
"docs": {
|
|
5914
|
-
"
|
|
5915
|
-
"
|
|
6856
|
+
"default": "new DefaultEsbuildProvider()",
|
|
6857
|
+
"remarks": "Configure the default `EsbuildProvider` for more options or\nprovide a custom `ITransformProvider` as an escape hatch.",
|
|
5916
6858
|
"stability": "stable",
|
|
5917
|
-
"summary": "Transform
|
|
6859
|
+
"summary": "The esbuild Transform API implementation to be used."
|
|
5918
6860
|
},
|
|
5919
6861
|
"immutable": true,
|
|
5920
6862
|
"locationInModule": {
|
|
5921
6863
|
"filename": "src/inline-code.ts",
|
|
5922
|
-
"line":
|
|
6864
|
+
"line": 30
|
|
5923
6865
|
},
|
|
5924
|
-
"name": "
|
|
6866
|
+
"name": "transformProvider",
|
|
5925
6867
|
"optional": true,
|
|
5926
6868
|
"type": {
|
|
5927
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6869
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5928
6870
|
}
|
|
5929
6871
|
}
|
|
5930
6872
|
],
|
|
5931
6873
|
"symbolId": "src/inline-code:TransformerProps"
|
|
5932
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": 610
|
|
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": 611
|
|
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
|
+
},
|
|
5933
6908
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
5934
6909
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5935
|
-
"base": "@mrgrain/cdk-esbuild.
|
|
6910
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
5936
6911
|
"docs": {
|
|
5937
6912
|
"remarks": "The asset can be used by other constructs.",
|
|
5938
6913
|
"stability": "stable",
|
|
@@ -5945,7 +6920,7 @@
|
|
|
5945
6920
|
},
|
|
5946
6921
|
"locationInModule": {
|
|
5947
6922
|
"filename": "src/asset.ts",
|
|
5948
|
-
"line":
|
|
6923
|
+
"line": 57
|
|
5949
6924
|
},
|
|
5950
6925
|
"parameters": [
|
|
5951
6926
|
{
|
|
@@ -5971,14 +6946,14 @@
|
|
|
5971
6946
|
"kind": "class",
|
|
5972
6947
|
"locationInModule": {
|
|
5973
6948
|
"filename": "src/asset.ts",
|
|
5974
|
-
"line":
|
|
6949
|
+
"line": 135
|
|
5975
6950
|
},
|
|
5976
6951
|
"name": "TypeScriptAsset",
|
|
5977
6952
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
5978
6953
|
},
|
|
5979
6954
|
"@mrgrain/cdk-esbuild.TypeScriptCode": {
|
|
5980
6955
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
5981
|
-
"base": "@mrgrain/cdk-esbuild.
|
|
6956
|
+
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5982
6957
|
"docs": {
|
|
5983
6958
|
"stability": "stable",
|
|
5984
6959
|
"summary": "Represents the deployed TypeScript Code."
|
|
@@ -5990,14 +6965,14 @@
|
|
|
5990
6965
|
},
|
|
5991
6966
|
"locationInModule": {
|
|
5992
6967
|
"filename": "src/code.ts",
|
|
5993
|
-
"line":
|
|
6968
|
+
"line": 194
|
|
5994
6969
|
},
|
|
5995
6970
|
"parameters": [
|
|
5996
6971
|
{
|
|
5997
6972
|
"docs": {
|
|
5998
|
-
"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'}`",
|
|
5999
6974
|
"stability": "stable",
|
|
6000
|
-
"summary": "A
|
|
6975
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
6001
6976
|
},
|
|
6002
6977
|
"name": "entryPoints",
|
|
6003
6978
|
"type": {
|
|
@@ -6043,7 +7018,7 @@
|
|
|
6043
7018
|
"kind": "class",
|
|
6044
7019
|
"locationInModule": {
|
|
6045
7020
|
"filename": "src/code.ts",
|
|
6046
|
-
"line":
|
|
7021
|
+
"line": 185
|
|
6047
7022
|
},
|
|
6048
7023
|
"methods": [
|
|
6049
7024
|
{
|
|
@@ -6052,10 +7027,10 @@
|
|
|
6052
7027
|
},
|
|
6053
7028
|
"locationInModule": {
|
|
6054
7029
|
"filename": "src/code.ts",
|
|
6055
|
-
"line":
|
|
7030
|
+
"line": 186
|
|
6056
7031
|
},
|
|
6057
7032
|
"name": "getAsset",
|
|
6058
|
-
"overrides": "@mrgrain/cdk-esbuild.
|
|
7033
|
+
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
6059
7034
|
"parameters": [
|
|
6060
7035
|
{
|
|
6061
7036
|
"name": "scope",
|
|
@@ -6067,7 +7042,7 @@
|
|
|
6067
7042
|
"protected": true,
|
|
6068
7043
|
"returns": {
|
|
6069
7044
|
"type": {
|
|
6070
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
7045
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
6071
7046
|
}
|
|
6072
7047
|
}
|
|
6073
7048
|
}
|
|
@@ -6088,7 +7063,7 @@
|
|
|
6088
7063
|
"kind": "interface",
|
|
6089
7064
|
"locationInModule": {
|
|
6090
7065
|
"filename": "src/code.ts",
|
|
6091
|
-
"line":
|
|
7066
|
+
"line": 17
|
|
6092
7067
|
},
|
|
6093
7068
|
"name": "TypeScriptCodeProps",
|
|
6094
7069
|
"properties": [
|
|
@@ -6125,10 +7100,15 @@
|
|
|
6125
7100
|
},
|
|
6126
7101
|
"locationInModule": {
|
|
6127
7102
|
"filename": "src/source.ts",
|
|
6128
|
-
"line":
|
|
7103
|
+
"line": 154
|
|
6129
7104
|
},
|
|
6130
7105
|
"parameters": [
|
|
6131
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
|
+
},
|
|
6132
7112
|
"name": "entryPoints",
|
|
6133
7113
|
"type": {
|
|
6134
7114
|
"union": {
|
|
@@ -6157,6 +7137,11 @@
|
|
|
6157
7137
|
}
|
|
6158
7138
|
},
|
|
6159
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
|
+
},
|
|
6160
7145
|
"name": "props",
|
|
6161
7146
|
"optional": true,
|
|
6162
7147
|
"type": {
|
|
@@ -6171,7 +7156,7 @@
|
|
|
6171
7156
|
"kind": "class",
|
|
6172
7157
|
"locationInModule": {
|
|
6173
7158
|
"filename": "src/source.ts",
|
|
6174
|
-
"line":
|
|
7159
|
+
"line": 148
|
|
6175
7160
|
},
|
|
6176
7161
|
"methods": [
|
|
6177
7162
|
{
|
|
@@ -6181,7 +7166,7 @@
|
|
|
6181
7166
|
},
|
|
6182
7167
|
"locationInModule": {
|
|
6183
7168
|
"filename": "src/source.ts",
|
|
6184
|
-
"line":
|
|
7169
|
+
"line": 73
|
|
6185
7170
|
},
|
|
6186
7171
|
"name": "bind",
|
|
6187
7172
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -6238,7 +7223,7 @@
|
|
|
6238
7223
|
},
|
|
6239
7224
|
"locationInModule": {
|
|
6240
7225
|
"filename": "src/source.ts",
|
|
6241
|
-
"line":
|
|
7226
|
+
"line": 152
|
|
6242
7227
|
},
|
|
6243
7228
|
"name": "assetClass",
|
|
6244
7229
|
"type": {
|
|
@@ -6301,6 +7286,6 @@
|
|
|
6301
7286
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6302
7287
|
}
|
|
6303
7288
|
},
|
|
6304
|
-
"version": "4.0.0-
|
|
6305
|
-
"fingerprint": "
|
|
6306
|
-
}
|
|
7289
|
+
"version": "4.0.0-beta.0",
|
|
7290
|
+
"fingerprint": "g2/jKxrYesqtHecdGgV2Wyex2cJtRzYFR4awJmOaPrw="
|
|
7291
|
+
}
|