@mrgrain/cdk-esbuild 2.0.0-rc.0 → 2.2.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 CHANGED
@@ -44,6 +44,33 @@
44
44
  }
45
45
  }
46
46
  },
47
+ "@aws-cdk/aws-acmpca": {
48
+ "targets": {
49
+ "dotnet": {
50
+ "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
51
+ "namespace": "Amazon.CDK.AWS.ACMPCA",
52
+ "packageId": "Amazon.CDK.AWS.ACMPCA"
53
+ },
54
+ "java": {
55
+ "maven": {
56
+ "artifactId": "acmpca",
57
+ "groupId": "software.amazon.awscdk"
58
+ },
59
+ "package": "software.amazon.awscdk.services.acmpca"
60
+ },
61
+ "js": {
62
+ "npm": "@aws-cdk/aws-acmpca"
63
+ },
64
+ "python": {
65
+ "classifiers": [
66
+ "Framework :: AWS CDK",
67
+ "Framework :: AWS CDK :: 1"
68
+ ],
69
+ "distName": "aws-cdk.aws-acmpca",
70
+ "module": "aws_cdk.aws_acmpca"
71
+ }
72
+ }
73
+ },
47
74
  "@aws-cdk/aws-applicationautoscaling": {
48
75
  "targets": {
49
76
  "dotnet": {
@@ -154,12 +181,7 @@
154
181
  },
155
182
  "@aws-cdk/aws-cloudfront": {
156
183
  "submodules": {
157
- "@aws-cdk/aws-cloudfront.experimental": {
158
- "locationInModule": {
159
- "filename": "lib/index.ts",
160
- "line": 12
161
- }
162
- }
184
+ "@aws-cdk/aws-cloudfront.experimental": {}
163
185
  },
164
186
  "targets": {
165
187
  "dotnet": {
@@ -947,7 +969,7 @@
947
969
  "stability": "stable"
948
970
  },
949
971
  "homepage": "https://github.com/mrgrain/cdk-esbuild",
950
- "jsiiVersion": "1.39.0 (build 8af72c2)",
972
+ "jsiiVersion": "1.46.0 (build cd08c55)",
951
973
  "keywords": [
952
974
  "aws-cdk",
953
975
  "bundler",
@@ -969,7 +991,7 @@
969
991
  },
970
992
  "name": "@mrgrain/cdk-esbuild",
971
993
  "readme": {
972
- "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 v2](#migrating-to-v2) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning)\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**⚠️ A note on stability**\n\nThis package is generally stable and ready to be used in production as many do. However _esbuild_ is still on major version zero, which you should consider. Please check their guide on [production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNotably upgrades of the _esbuild_ 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\n```\n\nIf _peer_ and _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 esbuild @aws-cdk/core @aws-cdk/aws-lambda @aws-cdk/aws-s3-assets @aws-cdk/aws-s3-deployment @aws-cdk/aws-synthetics\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/latest/docs/@aws-cdk_aws-lambda.Function.html#code):\n\n```ts\nimport * as lambda from \"@aws-cdk/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_14_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/aws-s3\";\nimport * as s3deploy from \"@aws-cdk/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```ts\nimport * as synthetics from \"@aws-cdk/aws-synthetics\";\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/latest/docs/@aws-cdk_aws-lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-synthetics.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 plugin to high-level CDK features. They share the same set of parameters, props and build options._\n\nUnderlying 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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_core.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 within the code completion of your IDE.\n\n## Migrating to v2\n\nThe main changes in cdk-esbuild v2 are:\n\n- The package is now `jsii` compliant and published in the [Construct Hub](https://constructs.dev/). This will also enable a possible feature release for other languages.\n- Deprecated properties and classes have been removed, most notably the previous support for bundling via a Docker container. The implementation had a few issues that cannot be easily resolved. However more generic support for custom executables might arrive in later versions.\n- `esbuild` is now installed as an optional dependency. It's not optional at all, but this is a ramification of using `jsii`. In practice this will have no impact on most people.\n- Interfaces have been streamlined and the names and setup of internal types have been changed. In the unlikely case that someone was relying on these, upgrading will be straight forward.\n\n### Upgrading\n\n- Update the package dependency to v2: `npm install --save @mrgrain/cdk-esbuild@^2.0.0`\n- `esbuild` is now installed as an optional dependency. If your setup does not automatically install optional dependencies, add it as an explicit dependency.\n- Remove any use of `bundlerPriority`.\n- Unstable construct `EsbuildBundling` has been renamed to `EsbuildBundler` and its interface has slightly changed. Like most other constructs, it now takes `entryPoints` as first parameter, with an optional `props` object as the second.\n\n## Versioning\n\nThis package _mostly_ 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\nAlthough great care is taken to avoid this, all features marked as `@unstable` may change with minor versions. Please note that the unstable flag is applied to all new or experimental features and internal classes.\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## Future releases\n\n### AWS CDK v2\n\nThe monolithic version 2 of CDK (aka Mono-CDK) is on the horizon. A new major release of this package will be marked alongside CDK. Support for AWS CDK v1.x.x will be continued, however no new features will be added.\n\n### Stable esbuild\n\nOnce `esbuild` has reached a stable version 1.0, a new major version will be released for _all_ breaking changes, including updates to minimum (peer) dependencies.\n\n## Library authors\n\nWhen developing a library consumed by other packages, you'll most likely have to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve based on the directory name of the 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"
994
+ "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 v2](#migrating-to-v2) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Versioning](#versioning)\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 generally stable and ready to be used in production, as many do. However _esbuild_ not yet released a version 1.0.0 yet and its API is still in active development. Please check their guide on [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\n```\n\nIf _peer_ and _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 esbuild @aws-cdk/core @aws-cdk/aws-lambda @aws-cdk/aws-s3-assets @aws-cdk/aws-s3-deployment @aws-cdk/aws-synthetics\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/latest/docs/@aws-cdk_aws-lambda.Function.html#code):\n\n```ts\nimport * as lambda from \"@aws-cdk/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_14_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/aws-s3\";\nimport * as s3deploy from \"@aws-cdk/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```ts\nimport * as synthetics from \"@aws-cdk/aws-synthetics\";\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/latest/docs/@aws-cdk_aws-lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-synthetics.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 plugin to high-level CDK features. They share the same set of parameters, props and build options._\n\nUnderlying 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/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_core.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 within the code completion of your IDE.\n\n## Escape hatches\n\nIt's possible that you want to use a 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 version of esbuild that is installed by any other means than `npm`, including Docker\n- Plugin support is needed for the 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### 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 v2\n\nThe main changes in cdk-esbuild v2 are:\n\n- The package is now `jsii` compliant and published in the [Construct Hub](https://constructs.dev/). This will also enable a possible feature release for other languages.\n- Deprecated properties and classes have been removed, most notably the previous support for bundling via a Docker container. The implementation had a few issues that cannot be easily resolved. However more generic support for custom executables might arrive in later versions.\n- `esbuild` is now installed as an optional dependency. It's not optional at all, but this is a ramification of using `jsii`. In practice this will have no impact on most people.\n- Interfaces have been streamlined and the names and setup of internal types have been changed. In the unlikely case that someone was relying on these, upgrading will be straight forward.\n\n### Upgrading\n\n- Update the package dependency to v2: `npm install --save @mrgrain/cdk-esbuild@^2.0.0`\n- `esbuild` is now installed as an optional dependency. If your setup does not automatically install optional dependencies, add it as an explicit dependency.\n- Remove any use of `bundlerPriority`.\n- Experimental construct `EsbuildBundling` has been renamed to `EsbuildBundler` and its interface has slightly changed. Like most other constructs, it now takes `entryPoints` as first parameter, with an optional `props` object as the second.\n\n## Versioning\n\nThis package _mostly_ 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\nAlthough great care is taken to avoid this, all features marked with `@stability experimental` may change with minor versions. The flag is only applied to new and experimental features and internal classes.\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## Future releases\n\n### AWS CDK v2\n\nThe monolithic version 2 of CDK (aka Mono-CDK) is on the horizon. A new major release of this package will be marked alongside CDK. Support for AWS CDK v1.x.x will be continued, however no new features will be added.\n\n### Stable esbuild\n\nOnce `esbuild` has reached a stable version 1.0, a new major version will be released for _all_ breaking changes, including updates to minimum (peer) dependencies.\n\n## Library authors\n\nWhen developing a library consumed by other packages, you'll most likely have to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve based on the directory name of the 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"
973
995
  },
974
996
  "repository": {
975
997
  "type": "git",
@@ -1069,19 +1091,20 @@
1069
1091
  "kind": "interface",
1070
1092
  "locationInModule": {
1071
1093
  "filename": "src/esbuild-types.ts",
1072
- "line": 40
1094
+ "line": 63
1073
1095
  },
1074
1096
  "name": "BuildOptions",
1075
1097
  "properties": [
1076
1098
  {
1077
1099
  "abstract": true,
1078
1100
  "docs": {
1079
- "stability": "stable"
1101
+ "stability": "stable",
1102
+ "summary": "Documentation: https://esbuild.github.io/api/#working-directory."
1080
1103
  },
1081
1104
  "immutable": true,
1082
1105
  "locationInModule": {
1083
1106
  "filename": "src/esbuild-types.ts",
1084
- "line": 66
1107
+ "line": 115
1085
1108
  },
1086
1109
  "name": "absWorkingDir",
1087
1110
  "optional": true,
@@ -1092,12 +1115,13 @@
1092
1115
  {
1093
1116
  "abstract": true,
1094
1117
  "docs": {
1095
- "stability": "stable"
1118
+ "stability": "stable",
1119
+ "summary": "Documentation: https://esbuild.github.io/api/#allow-overwrite."
1096
1120
  },
1097
1121
  "immutable": true,
1098
1122
  "locationInModule": {
1099
1123
  "filename": "src/esbuild-types.ts",
1100
- "line": 55
1124
+ "line": 93
1101
1125
  },
1102
1126
  "name": "allowOverwrite",
1103
1127
  "optional": true,
@@ -1108,12 +1132,13 @@
1108
1132
  {
1109
1133
  "abstract": true,
1110
1134
  "docs": {
1111
- "stability": "stable"
1135
+ "stability": "stable",
1136
+ "summary": "Documentation: https://esbuild.github.io/api/#asset-names."
1112
1137
  },
1113
1138
  "immutable": true,
1114
1139
  "locationInModule": {
1115
1140
  "filename": "src/esbuild-types.ts",
1116
- "line": 61
1141
+ "line": 105
1117
1142
  },
1118
1143
  "name": "assetNames",
1119
1144
  "optional": true,
@@ -1124,12 +1149,13 @@
1124
1149
  {
1125
1150
  "abstract": true,
1126
1151
  "docs": {
1127
- "stability": "stable"
1152
+ "stability": "stable",
1153
+ "summary": "Documentation: https://esbuild.github.io/api/#banner."
1128
1154
  },
1129
1155
  "immutable": true,
1130
1156
  "locationInModule": {
1131
1157
  "filename": "src/esbuild-types.ts",
1132
- "line": 63
1158
+ "line": 109
1133
1159
  },
1134
1160
  "name": "banner",
1135
1161
  "optional": true,
@@ -1145,12 +1171,13 @@
1145
1171
  {
1146
1172
  "abstract": true,
1147
1173
  "docs": {
1148
- "stability": "stable"
1174
+ "stability": "stable",
1175
+ "summary": "Documentation: https://esbuild.github.io/api/#bundle."
1149
1176
  },
1150
1177
  "immutable": true,
1151
1178
  "locationInModule": {
1152
1179
  "filename": "src/esbuild-types.ts",
1153
- "line": 41
1180
+ "line": 65
1154
1181
  },
1155
1182
  "name": "bundle",
1156
1183
  "optional": true,
@@ -1161,12 +1188,13 @@
1161
1188
  {
1162
1189
  "abstract": true,
1163
1190
  "docs": {
1164
- "stability": "stable"
1191
+ "stability": "stable",
1192
+ "summary": "Documentation: https://esbuild.github.io/api/#charset."
1165
1193
  },
1166
1194
  "immutable": true,
1167
1195
  "locationInModule": {
1168
1196
  "filename": "src/esbuild-types.ts",
1169
- "line": 23
1197
+ "line": 35
1170
1198
  },
1171
1199
  "name": "charset",
1172
1200
  "optional": true,
@@ -1177,12 +1205,13 @@
1177
1205
  {
1178
1206
  "abstract": true,
1179
1207
  "docs": {
1180
- "stability": "stable"
1208
+ "stability": "stable",
1209
+ "summary": "Documentation: https://esbuild.github.io/api/#chunk-names."
1181
1210
  },
1182
1211
  "immutable": true,
1183
1212
  "locationInModule": {
1184
1213
  "filename": "src/esbuild-types.ts",
1185
- "line": 60
1214
+ "line": 103
1186
1215
  },
1187
1216
  "name": "chunkNames",
1188
1217
  "optional": true,
@@ -1193,12 +1222,13 @@
1193
1222
  {
1194
1223
  "abstract": true,
1195
1224
  "docs": {
1196
- "stability": "stable"
1225
+ "stability": "stable",
1226
+ "summary": "Documentation: https://esbuild.github.io/api/#color."
1197
1227
  },
1198
1228
  "immutable": true,
1199
1229
  "locationInModule": {
1200
1230
  "filename": "src/esbuild-types.ts",
1201
- "line": 35
1231
+ "line": 56
1202
1232
  },
1203
1233
  "name": "color",
1204
1234
  "optional": true,
@@ -1209,12 +1239,13 @@
1209
1239
  {
1210
1240
  "abstract": true,
1211
1241
  "docs": {
1212
- "stability": "stable"
1242
+ "stability": "stable",
1243
+ "summary": "Documentation: https://esbuild.github.io/api/#conditions."
1213
1244
  },
1214
1245
  "immutable": true,
1215
1246
  "locationInModule": {
1216
1247
  "filename": "src/esbuild-types.ts",
1217
- "line": 53
1248
+ "line": 89
1218
1249
  },
1219
1250
  "name": "conditions",
1220
1251
  "optional": true,
@@ -1230,12 +1261,13 @@
1230
1261
  {
1231
1262
  "abstract": true,
1232
1263
  "docs": {
1233
- "stability": "stable"
1264
+ "stability": "stable",
1265
+ "summary": "Documentation: https://esbuild.github.io/api/#define."
1234
1266
  },
1235
1267
  "immutable": true,
1236
1268
  "locationInModule": {
1237
1269
  "filename": "src/esbuild-types.ts",
1238
- "line": 31
1270
+ "line": 49
1239
1271
  },
1240
1272
  "name": "define",
1241
1273
  "optional": true,
@@ -1251,12 +1283,13 @@
1251
1283
  {
1252
1284
  "abstract": true,
1253
1285
  "docs": {
1254
- "stability": "stable"
1286
+ "stability": "stable",
1287
+ "summary": "Documentation: https://esbuild.github.io/api/#entry-names."
1255
1288
  },
1256
1289
  "immutable": true,
1257
1290
  "locationInModule": {
1258
1291
  "filename": "src/esbuild-types.ts",
1259
- "line": 59
1292
+ "line": 101
1260
1293
  },
1261
1294
  "name": "entryNames",
1262
1295
  "optional": true,
@@ -1267,12 +1300,13 @@
1267
1300
  {
1268
1301
  "abstract": true,
1269
1302
  "docs": {
1270
- "stability": "stable"
1303
+ "stability": "stable",
1304
+ "summary": "Documentation: https://esbuild.github.io/api/#external."
1271
1305
  },
1272
1306
  "immutable": true,
1273
1307
  "locationInModule": {
1274
1308
  "filename": "src/esbuild-types.ts",
1275
- "line": 49
1309
+ "line": 81
1276
1310
  },
1277
1311
  "name": "external",
1278
1312
  "optional": true,
@@ -1288,12 +1322,13 @@
1288
1322
  {
1289
1323
  "abstract": true,
1290
1324
  "docs": {
1291
- "stability": "stable"
1325
+ "stability": "stable",
1326
+ "summary": "Documentation: https://esbuild.github.io/api/#footer."
1292
1327
  },
1293
1328
  "immutable": true,
1294
1329
  "locationInModule": {
1295
1330
  "filename": "src/esbuild-types.ts",
1296
- "line": 64
1331
+ "line": 111
1297
1332
  },
1298
1333
  "name": "footer",
1299
1334
  "optional": true,
@@ -1309,12 +1344,13 @@
1309
1344
  {
1310
1345
  "abstract": true,
1311
1346
  "docs": {
1312
- "stability": "stable"
1347
+ "stability": "stable",
1348
+ "summary": "Documentation: https://esbuild.github.io/api/#format."
1313
1349
  },
1314
1350
  "immutable": true,
1315
1351
  "locationInModule": {
1316
1352
  "filename": "src/esbuild-types.ts",
1317
- "line": 15
1353
+ "line": 20
1318
1354
  },
1319
1355
  "name": "format",
1320
1356
  "optional": true,
@@ -1325,12 +1361,13 @@
1325
1361
  {
1326
1362
  "abstract": true,
1327
1363
  "docs": {
1328
- "stability": "stable"
1364
+ "stability": "stable",
1365
+ "summary": "Documentation: https://esbuild.github.io/api/#globalName."
1329
1366
  },
1330
1367
  "immutable": true,
1331
1368
  "locationInModule": {
1332
1369
  "filename": "src/esbuild-types.ts",
1333
- "line": 16
1370
+ "line": 22
1334
1371
  },
1335
1372
  "name": "globalName",
1336
1373
  "optional": true,
@@ -1341,12 +1378,13 @@
1341
1378
  {
1342
1379
  "abstract": true,
1343
1380
  "docs": {
1344
- "stability": "stable"
1381
+ "stability": "stable",
1382
+ "summary": "Documentation: https://esbuild.github.io/api/#ignore-annotations."
1345
1383
  },
1346
1384
  "immutable": true,
1347
1385
  "locationInModule": {
1348
1386
  "filename": "src/esbuild-types.ts",
1349
- "line": 25
1387
+ "line": 39
1350
1388
  },
1351
1389
  "name": "ignoreAnnotations",
1352
1390
  "optional": true,
@@ -1357,12 +1395,13 @@
1357
1395
  {
1358
1396
  "abstract": true,
1359
1397
  "docs": {
1360
- "stability": "stable"
1398
+ "stability": "stable",
1399
+ "summary": "Documentation: https://esbuild.github.io/api/#incremental."
1361
1400
  },
1362
1401
  "immutable": true,
1363
1402
  "locationInModule": {
1364
1403
  "filename": "src/esbuild-types.ts",
1365
- "line": 65
1404
+ "line": 113
1366
1405
  },
1367
1406
  "name": "incremental",
1368
1407
  "optional": true,
@@ -1373,12 +1412,13 @@
1373
1412
  {
1374
1413
  "abstract": true,
1375
1414
  "docs": {
1376
- "stability": "stable"
1415
+ "stability": "stable",
1416
+ "summary": "Documentation: https://esbuild.github.io/api/#inject."
1377
1417
  },
1378
1418
  "immutable": true,
1379
1419
  "locationInModule": {
1380
1420
  "filename": "src/esbuild-types.ts",
1381
- "line": 62
1421
+ "line": 107
1382
1422
  },
1383
1423
  "name": "inject",
1384
1424
  "optional": true,
@@ -1394,12 +1434,13 @@
1394
1434
  {
1395
1435
  "abstract": true,
1396
1436
  "docs": {
1397
- "stability": "stable"
1437
+ "stability": "stable",
1438
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx."
1398
1439
  },
1399
1440
  "immutable": true,
1400
1441
  "locationInModule": {
1401
1442
  "filename": "src/esbuild-types.ts",
1402
- "line": 27
1443
+ "line": 42
1403
1444
  },
1404
1445
  "name": "jsx",
1405
1446
  "optional": true,
@@ -1410,12 +1451,13 @@
1410
1451
  {
1411
1452
  "abstract": true,
1412
1453
  "docs": {
1413
- "stability": "stable"
1454
+ "stability": "stable",
1455
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx-factory."
1414
1456
  },
1415
1457
  "immutable": true,
1416
1458
  "locationInModule": {
1417
1459
  "filename": "src/esbuild-types.ts",
1418
- "line": 28
1460
+ "line": 44
1419
1461
  },
1420
1462
  "name": "jsxFactory",
1421
1463
  "optional": true,
@@ -1426,12 +1468,13 @@
1426
1468
  {
1427
1469
  "abstract": true,
1428
1470
  "docs": {
1429
- "stability": "stable"
1471
+ "stability": "stable",
1472
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx-fragment."
1430
1473
  },
1431
1474
  "immutable": true,
1432
1475
  "locationInModule": {
1433
1476
  "filename": "src/esbuild-types.ts",
1434
- "line": 29
1477
+ "line": 46
1435
1478
  },
1436
1479
  "name": "jsxFragment",
1437
1480
  "optional": true,
@@ -1442,12 +1485,13 @@
1442
1485
  {
1443
1486
  "abstract": true,
1444
1487
  "docs": {
1445
- "stability": "stable"
1488
+ "stability": "stable",
1489
+ "summary": "Documentation: https://esbuild.github.io/api/#keep-names."
1446
1490
  },
1447
1491
  "immutable": true,
1448
1492
  "locationInModule": {
1449
1493
  "filename": "src/esbuild-types.ts",
1450
- "line": 33
1494
+ "line": 53
1451
1495
  },
1452
1496
  "name": "keepNames",
1453
1497
  "optional": true,
@@ -1458,12 +1502,13 @@
1458
1502
  {
1459
1503
  "abstract": true,
1460
1504
  "docs": {
1461
- "stability": "stable"
1505
+ "stability": "stable",
1506
+ "summary": "Documentation: https://esbuild.github.io/api/#legal-comments."
1462
1507
  },
1463
1508
  "immutable": true,
1464
1509
  "locationInModule": {
1465
1510
  "filename": "src/esbuild-types.ts",
1466
- "line": 11
1511
+ "line": 13
1467
1512
  },
1468
1513
  "name": "legalComments",
1469
1514
  "optional": true,
@@ -1474,12 +1519,13 @@
1474
1519
  {
1475
1520
  "abstract": true,
1476
1521
  "docs": {
1477
- "stability": "stable"
1522
+ "stability": "stable",
1523
+ "summary": "Documentation: https://esbuild.github.io/api/#loader."
1478
1524
  },
1479
1525
  "immutable": true,
1480
1526
  "locationInModule": {
1481
1527
  "filename": "src/esbuild-types.ts",
1482
- "line": 50
1528
+ "line": 83
1483
1529
  },
1484
1530
  "name": "loader",
1485
1531
  "optional": true,
@@ -1495,12 +1541,13 @@
1495
1541
  {
1496
1542
  "abstract": true,
1497
1543
  "docs": {
1498
- "stability": "stable"
1544
+ "stability": "stable",
1545
+ "summary": "Documentation: https://esbuild.github.io/api/#log-level."
1499
1546
  },
1500
1547
  "immutable": true,
1501
1548
  "locationInModule": {
1502
1549
  "filename": "src/esbuild-types.ts",
1503
- "line": 36
1550
+ "line": 58
1504
1551
  },
1505
1552
  "name": "logLevel",
1506
1553
  "optional": true,
@@ -1511,12 +1558,13 @@
1511
1558
  {
1512
1559
  "abstract": true,
1513
1560
  "docs": {
1514
- "stability": "stable"
1561
+ "stability": "stable",
1562
+ "summary": "Documentation: https://esbuild.github.io/api/#log-limit."
1515
1563
  },
1516
1564
  "immutable": true,
1517
1565
  "locationInModule": {
1518
1566
  "filename": "src/esbuild-types.ts",
1519
- "line": 37
1567
+ "line": 60
1520
1568
  },
1521
1569
  "name": "logLimit",
1522
1570
  "optional": true,
@@ -1527,12 +1575,13 @@
1527
1575
  {
1528
1576
  "abstract": true,
1529
1577
  "docs": {
1530
- "stability": "stable"
1578
+ "stability": "stable",
1579
+ "summary": "Documentation: https://esbuild.github.io/api/#mainFields."
1531
1580
  },
1532
1581
  "immutable": true,
1533
1582
  "locationInModule": {
1534
1583
  "filename": "src/esbuild-types.ts",
1535
- "line": 52
1584
+ "line": 87
1536
1585
  },
1537
1586
  "name": "mainFields",
1538
1587
  "optional": true,
@@ -1548,12 +1597,13 @@
1548
1597
  {
1549
1598
  "abstract": true,
1550
1599
  "docs": {
1551
- "stability": "stable"
1600
+ "stability": "stable",
1601
+ "summary": "Documentation: https://esbuild.github.io/api/#metafile."
1552
1602
  },
1553
1603
  "immutable": true,
1554
1604
  "locationInModule": {
1555
1605
  "filename": "src/esbuild-types.ts",
1556
- "line": 45
1606
+ "line": 73
1557
1607
  },
1558
1608
  "name": "metafile",
1559
1609
  "optional": true,
@@ -1564,12 +1614,13 @@
1564
1614
  {
1565
1615
  "abstract": true,
1566
1616
  "docs": {
1567
- "stability": "stable"
1617
+ "stability": "stable",
1618
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
1568
1619
  },
1569
1620
  "immutable": true,
1570
1621
  "locationInModule": {
1571
1622
  "filename": "src/esbuild-types.ts",
1572
- "line": 19
1623
+ "line": 27
1573
1624
  },
1574
1625
  "name": "minify",
1575
1626
  "optional": true,
@@ -1580,12 +1631,13 @@
1580
1631
  {
1581
1632
  "abstract": true,
1582
1633
  "docs": {
1583
- "stability": "stable"
1634
+ "stability": "stable",
1635
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
1584
1636
  },
1585
1637
  "immutable": true,
1586
1638
  "locationInModule": {
1587
1639
  "filename": "src/esbuild-types.ts",
1588
- "line": 21
1640
+ "line": 31
1589
1641
  },
1590
1642
  "name": "minifyIdentifiers",
1591
1643
  "optional": true,
@@ -1596,12 +1648,13 @@
1596
1648
  {
1597
1649
  "abstract": true,
1598
1650
  "docs": {
1599
- "stability": "stable"
1651
+ "stability": "stable",
1652
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
1600
1653
  },
1601
1654
  "immutable": true,
1602
1655
  "locationInModule": {
1603
1656
  "filename": "src/esbuild-types.ts",
1604
- "line": 22
1657
+ "line": 33
1605
1658
  },
1606
1659
  "name": "minifySyntax",
1607
1660
  "optional": true,
@@ -1612,12 +1665,13 @@
1612
1665
  {
1613
1666
  "abstract": true,
1614
1667
  "docs": {
1615
- "stability": "stable"
1668
+ "stability": "stable",
1669
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
1616
1670
  },
1617
1671
  "immutable": true,
1618
1672
  "locationInModule": {
1619
1673
  "filename": "src/esbuild-types.ts",
1620
- "line": 20
1674
+ "line": 29
1621
1675
  },
1622
1676
  "name": "minifyWhitespace",
1623
1677
  "optional": true,
@@ -1628,12 +1682,13 @@
1628
1682
  {
1629
1683
  "abstract": true,
1630
1684
  "docs": {
1631
- "stability": "stable"
1685
+ "stability": "stable",
1686
+ "summary": "Documentation: https://esbuild.github.io/api/#node-paths."
1632
1687
  },
1633
1688
  "immutable": true,
1634
1689
  "locationInModule": {
1635
1690
  "filename": "src/esbuild-types.ts",
1636
- "line": 67
1691
+ "line": 117
1637
1692
  },
1638
1693
  "name": "nodePaths",
1639
1694
  "optional": true,
@@ -1649,12 +1704,13 @@
1649
1704
  {
1650
1705
  "abstract": true,
1651
1706
  "docs": {
1652
- "stability": "stable"
1707
+ "stability": "stable",
1708
+ "summary": "Documentation: https://esbuild.github.io/api/#outbase."
1653
1709
  },
1654
1710
  "immutable": true,
1655
1711
  "locationInModule": {
1656
1712
  "filename": "src/esbuild-types.ts",
1657
- "line": 47
1713
+ "line": 77
1658
1714
  },
1659
1715
  "name": "outbase",
1660
1716
  "optional": true,
@@ -1665,12 +1721,13 @@
1665
1721
  {
1666
1722
  "abstract": true,
1667
1723
  "docs": {
1668
- "stability": "stable"
1724
+ "stability": "stable",
1725
+ "summary": "Documentation: https://esbuild.github.io/api/#outdir."
1669
1726
  },
1670
1727
  "immutable": true,
1671
1728
  "locationInModule": {
1672
1729
  "filename": "src/esbuild-types.ts",
1673
- "line": 46
1730
+ "line": 75
1674
1731
  },
1675
1732
  "name": "outdir",
1676
1733
  "optional": true,
@@ -1681,12 +1738,13 @@
1681
1738
  {
1682
1739
  "abstract": true,
1683
1740
  "docs": {
1684
- "stability": "stable"
1741
+ "stability": "stable",
1742
+ "summary": "Documentation: https://esbuild.github.io/api/#out-extension."
1685
1743
  },
1686
1744
  "immutable": true,
1687
1745
  "locationInModule": {
1688
1746
  "filename": "src/esbuild-types.ts",
1689
- "line": 57
1747
+ "line": 97
1690
1748
  },
1691
1749
  "name": "outExtension",
1692
1750
  "optional": true,
@@ -1702,12 +1760,13 @@
1702
1760
  {
1703
1761
  "abstract": true,
1704
1762
  "docs": {
1705
- "stability": "stable"
1763
+ "stability": "stable",
1764
+ "summary": "Documentation: https://esbuild.github.io/api/#outfile."
1706
1765
  },
1707
1766
  "immutable": true,
1708
1767
  "locationInModule": {
1709
1768
  "filename": "src/esbuild-types.ts",
1710
- "line": 44
1769
+ "line": 71
1711
1770
  },
1712
1771
  "name": "outfile",
1713
1772
  "optional": true,
@@ -1718,12 +1777,13 @@
1718
1777
  {
1719
1778
  "abstract": true,
1720
1779
  "docs": {
1721
- "stability": "stable"
1780
+ "stability": "stable",
1781
+ "summary": "Documentation: https://esbuild.github.io/api/#platform."
1722
1782
  },
1723
1783
  "immutable": true,
1724
1784
  "locationInModule": {
1725
1785
  "filename": "src/esbuild-types.ts",
1726
- "line": 48
1786
+ "line": 79
1727
1787
  },
1728
1788
  "name": "platform",
1729
1789
  "optional": true,
@@ -1734,12 +1794,13 @@
1734
1794
  {
1735
1795
  "abstract": true,
1736
1796
  "docs": {
1737
- "stability": "stable"
1797
+ "stability": "stable",
1798
+ "summary": "Documentation: https://esbuild.github.io/api/#preserve-symlinks."
1738
1799
  },
1739
1800
  "immutable": true,
1740
1801
  "locationInModule": {
1741
1802
  "filename": "src/esbuild-types.ts",
1742
- "line": 43
1803
+ "line": 69
1743
1804
  },
1744
1805
  "name": "preserveSymlinks",
1745
1806
  "optional": true,
@@ -1750,12 +1811,13 @@
1750
1811
  {
1751
1812
  "abstract": true,
1752
1813
  "docs": {
1753
- "stability": "stable"
1814
+ "stability": "stable",
1815
+ "summary": "Documentation: https://esbuild.github.io/api/#public-path."
1754
1816
  },
1755
1817
  "immutable": true,
1756
1818
  "locationInModule": {
1757
1819
  "filename": "src/esbuild-types.ts",
1758
- "line": 58
1820
+ "line": 99
1759
1821
  },
1760
1822
  "name": "publicPath",
1761
1823
  "optional": true,
@@ -1766,12 +1828,13 @@
1766
1828
  {
1767
1829
  "abstract": true,
1768
1830
  "docs": {
1769
- "stability": "stable"
1831
+ "stability": "stable",
1832
+ "summary": "Documentation: https://esbuild.github.io/api/#pure."
1770
1833
  },
1771
1834
  "immutable": true,
1772
1835
  "locationInModule": {
1773
1836
  "filename": "src/esbuild-types.ts",
1774
- "line": 32
1837
+ "line": 51
1775
1838
  },
1776
1839
  "name": "pure",
1777
1840
  "optional": true,
@@ -1787,12 +1850,13 @@
1787
1850
  {
1788
1851
  "abstract": true,
1789
1852
  "docs": {
1790
- "stability": "stable"
1853
+ "stability": "stable",
1854
+ "summary": "Documentation: https://esbuild.github.io/api/#resolve-extensions."
1791
1855
  },
1792
1856
  "immutable": true,
1793
1857
  "locationInModule": {
1794
1858
  "filename": "src/esbuild-types.ts",
1795
- "line": 51
1859
+ "line": 85
1796
1860
  },
1797
1861
  "name": "resolveExtensions",
1798
1862
  "optional": true,
@@ -1808,12 +1872,13 @@
1808
1872
  {
1809
1873
  "abstract": true,
1810
1874
  "docs": {
1811
- "stability": "stable"
1875
+ "stability": "stable",
1876
+ "summary": "Documentation: https://esbuild.github.io/api/#sourcemap."
1812
1877
  },
1813
1878
  "immutable": true,
1814
1879
  "locationInModule": {
1815
1880
  "filename": "src/esbuild-types.ts",
1816
- "line": 10
1881
+ "line": 11
1817
1882
  },
1818
1883
  "name": "sourcemap",
1819
1884
  "optional": true,
@@ -1833,12 +1898,13 @@
1833
1898
  {
1834
1899
  "abstract": true,
1835
1900
  "docs": {
1836
- "stability": "stable"
1901
+ "stability": "stable",
1902
+ "summary": "Documentation: https://esbuild.github.io/api/#source-root."
1837
1903
  },
1838
1904
  "immutable": true,
1839
1905
  "locationInModule": {
1840
1906
  "filename": "src/esbuild-types.ts",
1841
- "line": 12
1907
+ "line": 15
1842
1908
  },
1843
1909
  "name": "sourceRoot",
1844
1910
  "optional": true,
@@ -1849,12 +1915,13 @@
1849
1915
  {
1850
1916
  "abstract": true,
1851
1917
  "docs": {
1852
- "stability": "stable"
1918
+ "stability": "stable",
1919
+ "summary": "Documentation: https://esbuild.github.io/api/#sources-content."
1853
1920
  },
1854
1921
  "immutable": true,
1855
1922
  "locationInModule": {
1856
1923
  "filename": "src/esbuild-types.ts",
1857
- "line": 13
1924
+ "line": 17
1858
1925
  },
1859
1926
  "name": "sourcesContent",
1860
1927
  "optional": true,
@@ -1865,12 +1932,13 @@
1865
1932
  {
1866
1933
  "abstract": true,
1867
1934
  "docs": {
1868
- "stability": "stable"
1935
+ "stability": "stable",
1936
+ "summary": "Documentation: https://esbuild.github.io/api/#splitting."
1869
1937
  },
1870
1938
  "immutable": true,
1871
1939
  "locationInModule": {
1872
1940
  "filename": "src/esbuild-types.ts",
1873
- "line": 42
1941
+ "line": 67
1874
1942
  },
1875
1943
  "name": "splitting",
1876
1944
  "optional": true,
@@ -1881,12 +1949,13 @@
1881
1949
  {
1882
1950
  "abstract": true,
1883
1951
  "docs": {
1884
- "stability": "stable"
1952
+ "stability": "stable",
1953
+ "summary": "Documentation: https://esbuild.github.io/api/#target."
1885
1954
  },
1886
1955
  "immutable": true,
1887
1956
  "locationInModule": {
1888
1957
  "filename": "src/esbuild-types.ts",
1889
- "line": 17
1958
+ "line": 24
1890
1959
  },
1891
1960
  "name": "target",
1892
1961
  "optional": true,
@@ -1911,12 +1980,13 @@
1911
1980
  {
1912
1981
  "abstract": true,
1913
1982
  "docs": {
1914
- "stability": "stable"
1983
+ "stability": "stable",
1984
+ "summary": "Documentation: https://esbuild.github.io/api/#tree-shaking."
1915
1985
  },
1916
1986
  "immutable": true,
1917
1987
  "locationInModule": {
1918
1988
  "filename": "src/esbuild-types.ts",
1919
- "line": 24
1989
+ "line": 37
1920
1990
  },
1921
1991
  "name": "treeShaking",
1922
1992
  "optional": true,
@@ -1927,12 +1997,13 @@
1927
1997
  {
1928
1998
  "abstract": true,
1929
1999
  "docs": {
1930
- "stability": "stable"
2000
+ "stability": "stable",
2001
+ "summary": "Documentation: https://esbuild.github.io/api/#tsconfig."
1931
2002
  },
1932
2003
  "immutable": true,
1933
2004
  "locationInModule": {
1934
2005
  "filename": "src/esbuild-types.ts",
1935
- "line": 56
2006
+ "line": 95
1936
2007
  },
1937
2008
  "name": "tsconfig",
1938
2009
  "optional": true,
@@ -1943,12 +2014,13 @@
1943
2014
  {
1944
2015
  "abstract": true,
1945
2016
  "docs": {
1946
- "stability": "stable"
2017
+ "stability": "stable",
2018
+ "summary": "Documentation: https://esbuild.github.io/api/#write."
1947
2019
  },
1948
2020
  "immutable": true,
1949
2021
  "locationInModule": {
1950
2022
  "filename": "src/esbuild-types.ts",
1951
- "line": 54
2023
+ "line": 91
1952
2024
  },
1953
2025
  "name": "write",
1954
2026
  "optional": true,
@@ -1973,6 +2045,30 @@
1973
2045
  },
1974
2046
  "name": "BundlerProps",
1975
2047
  "properties": [
2048
+ {
2049
+ "abstract": true,
2050
+ "docs": {
2051
+ "custom": {
2052
+ "throws": "esbuild.BuildFailure",
2053
+ "type": "esbuild.buildSync"
2054
+ },
2055
+ "default": "esbuild.buildSync",
2056
+ "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.",
2057
+ "returns": "esbuild.BuildResult",
2058
+ "stability": "experimental",
2059
+ "summary": "Escape hatch to provide the bundler with a custom build function."
2060
+ },
2061
+ "immutable": true,
2062
+ "locationInModule": {
2063
+ "filename": "src/bundler.ts",
2064
+ "line": 63
2065
+ },
2066
+ "name": "buildFn",
2067
+ "optional": true,
2068
+ "type": {
2069
+ "primitive": "any"
2070
+ }
2071
+ },
1976
2072
  {
1977
2073
  "abstract": true,
1978
2074
  "docs": {
@@ -2060,7 +2156,7 @@
2060
2156
  },
2061
2157
  "locationInModule": {
2062
2158
  "filename": "src/bundler.ts",
2063
- "line": 76
2159
+ "line": 90
2064
2160
  },
2065
2161
  "parameters": [
2066
2162
  {
@@ -2111,7 +2207,7 @@
2111
2207
  "kind": "class",
2112
2208
  "locationInModule": {
2113
2209
  "filename": "src/bundler.ts",
2114
- "line": 58
2210
+ "line": 72
2115
2211
  },
2116
2212
  "name": "EsbuildBundler",
2117
2213
  "properties": [
@@ -2124,7 +2220,7 @@
2124
2220
  "immutable": true,
2125
2221
  "locationInModule": {
2126
2222
  "filename": "src/bundler.ts",
2127
- "line": 83
2223
+ "line": 97
2128
2224
  },
2129
2225
  "name": "entryPoints",
2130
2226
  "type": {
@@ -2161,7 +2257,7 @@
2161
2257
  "immutable": true,
2162
2258
  "locationInModule": {
2163
2259
  "filename": "src/bundler.ts",
2164
- "line": 71
2260
+ "line": 85
2165
2261
  },
2166
2262
  "name": "image",
2167
2263
  "type": {
@@ -2176,7 +2272,7 @@
2176
2272
  "immutable": true,
2177
2273
  "locationInModule": {
2178
2274
  "filename": "src/bundler.ts",
2179
- "line": 64
2275
+ "line": 78
2180
2276
  },
2181
2277
  "name": "local",
2182
2278
  "type": {
@@ -2191,7 +2287,7 @@
2191
2287
  "immutable": true,
2192
2288
  "locationInModule": {
2193
2289
  "filename": "src/bundler.ts",
2194
- "line": 90
2290
+ "line": 104
2195
2291
  },
2196
2292
  "name": "props",
2197
2293
  "type": {
@@ -2215,7 +2311,7 @@
2215
2311
  },
2216
2312
  "locationInModule": {
2217
2313
  "filename": "src/inline-code.ts",
2218
- "line": 34
2314
+ "line": 84
2219
2315
  },
2220
2316
  "parameters": [
2221
2317
  {
@@ -2230,15 +2326,24 @@
2230
2326
  },
2231
2327
  {
2232
2328
  "docs": {
2233
- "remarks": "Please refer to the esbuild Transform API docs for details. \\\nDefault values for `transformOptions`:\n- `loader='js'`",
2329
+ "remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `props.transformOptions`:\n- `loader='js'`",
2234
2330
  "see": "https://esbuild.github.io/api/#transform-api",
2235
2331
  "stability": "experimental",
2236
- "summary": "Transform options passed on to esbuild."
2332
+ "summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
2237
2333
  },
2238
- "name": "transformOptions",
2334
+ "name": "props",
2239
2335
  "optional": true,
2240
2336
  "type": {
2241
- "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2337
+ "union": {
2338
+ "types": [
2339
+ {
2340
+ "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2341
+ },
2342
+ {
2343
+ "fqn": "@mrgrain/cdk-esbuild.TransformerProps"
2344
+ }
2345
+ ]
2346
+ }
2242
2347
  }
2243
2348
  }
2244
2349
  ]
@@ -2246,7 +2351,7 @@
2246
2351
  "kind": "class",
2247
2352
  "locationInModule": {
2248
2353
  "filename": "src/inline-code.ts",
2249
- "line": 33
2354
+ "line": 83
2250
2355
  },
2251
2356
  "name": "InlineJavaScriptCode",
2252
2357
  "symbolId": "src/inline-code:InlineJavaScriptCode"
@@ -2265,7 +2370,7 @@
2265
2370
  },
2266
2371
  "locationInModule": {
2267
2372
  "filename": "src/inline-code.ts",
2268
- "line": 63
2373
+ "line": 115
2269
2374
  },
2270
2375
  "parameters": [
2271
2376
  {
@@ -2280,15 +2385,24 @@
2280
2385
  },
2281
2386
  {
2282
2387
  "docs": {
2283
- "remarks": "Please refer to the esbuild Transform API docs for details. \\\nDefault values for `transformOptions`:\n- `loader='jsx'`",
2388
+ "remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `transformOptions`:\n- `loader='jsx'`",
2284
2389
  "see": "https://esbuild.github.io/api/#transform-api",
2285
2390
  "stability": "experimental",
2286
- "summary": "Transform options passed on to esbuild."
2391
+ "summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
2287
2392
  },
2288
- "name": "transformOptions",
2393
+ "name": "props",
2289
2394
  "optional": true,
2290
2395
  "type": {
2291
- "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2396
+ "union": {
2397
+ "types": [
2398
+ {
2399
+ "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2400
+ },
2401
+ {
2402
+ "fqn": "@mrgrain/cdk-esbuild.TransformerProps"
2403
+ }
2404
+ ]
2405
+ }
2292
2406
  }
2293
2407
  }
2294
2408
  ]
@@ -2296,7 +2410,7 @@
2296
2410
  "kind": "class",
2297
2411
  "locationInModule": {
2298
2412
  "filename": "src/inline-code.ts",
2299
- "line": 62
2413
+ "line": 114
2300
2414
  },
2301
2415
  "name": "InlineJsxCode",
2302
2416
  "symbolId": "src/inline-code:InlineJsxCode"
@@ -2315,7 +2429,7 @@
2315
2429
  },
2316
2430
  "locationInModule": {
2317
2431
  "filename": "src/inline-code.ts",
2318
- "line": 121
2432
+ "line": 175
2319
2433
  },
2320
2434
  "parameters": [
2321
2435
  {
@@ -2330,15 +2444,24 @@
2330
2444
  },
2331
2445
  {
2332
2446
  "docs": {
2333
- "remarks": "Please refer to the esbuild Transform API docs for details. \\\nDefault values for `transformOptions`:\n- `loader='tsx'`",
2447
+ "remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `transformOptions`:\n- `loader='tsx'`",
2334
2448
  "see": "https://esbuild.github.io/api/#transform-api",
2335
2449
  "stability": "experimental",
2336
- "summary": "Transform options passed on to esbuild."
2450
+ "summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
2337
2451
  },
2338
- "name": "transformOptions",
2452
+ "name": "props",
2339
2453
  "optional": true,
2340
2454
  "type": {
2341
- "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2455
+ "union": {
2456
+ "types": [
2457
+ {
2458
+ "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2459
+ },
2460
+ {
2461
+ "fqn": "@mrgrain/cdk-esbuild.TransformerProps"
2462
+ }
2463
+ ]
2464
+ }
2342
2465
  }
2343
2466
  }
2344
2467
  ]
@@ -2346,7 +2469,7 @@
2346
2469
  "kind": "class",
2347
2470
  "locationInModule": {
2348
2471
  "filename": "src/inline-code.ts",
2349
- "line": 120
2472
+ "line": 174
2350
2473
  },
2351
2474
  "name": "InlineTsxCode",
2352
2475
  "symbolId": "src/inline-code:InlineTsxCode"
@@ -2365,7 +2488,7 @@
2365
2488
  },
2366
2489
  "locationInModule": {
2367
2490
  "filename": "src/inline-code.ts",
2368
- "line": 92
2491
+ "line": 145
2369
2492
  },
2370
2493
  "parameters": [
2371
2494
  {
@@ -2380,15 +2503,24 @@
2380
2503
  },
2381
2504
  {
2382
2505
  "docs": {
2383
- "remarks": "Please refer to the esbuild Transform API docs for details. \\\nDefault values for `transformOptions`:\n- `loader='ts'`",
2506
+ "remarks": "Props to change the behaviour of the transformer.\n\nDefault values for `transformOptions`:\n- `loader='ts'`",
2384
2507
  "see": "https://esbuild.github.io/api/#transform-api",
2385
2508
  "stability": "experimental",
2386
- "summary": "Transform options passed on to esbuild."
2509
+ "summary": "Support for `TransformOptions` is deprecated. Please provide `TransformerProps`!"
2387
2510
  },
2388
- "name": "transformOptions",
2511
+ "name": "props",
2389
2512
  "optional": true,
2390
2513
  "type": {
2391
- "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2514
+ "union": {
2515
+ "types": [
2516
+ {
2517
+ "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
2518
+ },
2519
+ {
2520
+ "fqn": "@mrgrain/cdk-esbuild.TransformerProps"
2521
+ }
2522
+ ]
2523
+ }
2392
2524
  }
2393
2525
  }
2394
2526
  ]
@@ -2396,7 +2528,7 @@
2396
2528
  "kind": "class",
2397
2529
  "locationInModule": {
2398
2530
  "filename": "src/inline-code.ts",
2399
- "line": 91
2531
+ "line": 144
2400
2532
  },
2401
2533
  "name": "InlineTypeScriptCode",
2402
2534
  "symbolId": "src/inline-code:InlineTypeScriptCode"
@@ -2441,7 +2573,7 @@
2441
2573
  "kind": "class",
2442
2574
  "locationInModule": {
2443
2575
  "filename": "src/asset.ts",
2444
- "line": 94
2576
+ "line": 96
2445
2577
  },
2446
2578
  "name": "JavaScriptAsset",
2447
2579
  "symbolId": "src/asset:JavaScriptAsset"
@@ -2873,7 +3005,7 @@
2873
3005
  "kind": "interface",
2874
3006
  "locationInModule": {
2875
3007
  "filename": "src/esbuild-types.ts",
2876
- "line": 158
3008
+ "line": 222
2877
3009
  },
2878
3010
  "name": "TransformOptions",
2879
3011
  "properties": [
@@ -2885,7 +3017,7 @@
2885
3017
  "immutable": true,
2886
3018
  "locationInModule": {
2887
3019
  "filename": "src/esbuild-types.ts",
2888
- "line": 163
3020
+ "line": 227
2889
3021
  },
2890
3022
  "name": "banner",
2891
3023
  "optional": true,
@@ -2896,12 +3028,13 @@
2896
3028
  {
2897
3029
  "abstract": true,
2898
3030
  "docs": {
2899
- "stability": "stable"
3031
+ "stability": "stable",
3032
+ "summary": "Documentation: https://esbuild.github.io/api/#charset."
2900
3033
  },
2901
3034
  "immutable": true,
2902
3035
  "locationInModule": {
2903
3036
  "filename": "src/esbuild-types.ts",
2904
- "line": 23
3037
+ "line": 35
2905
3038
  },
2906
3039
  "name": "charset",
2907
3040
  "optional": true,
@@ -2912,12 +3045,13 @@
2912
3045
  {
2913
3046
  "abstract": true,
2914
3047
  "docs": {
2915
- "stability": "stable"
3048
+ "stability": "stable",
3049
+ "summary": "Documentation: https://esbuild.github.io/api/#color."
2916
3050
  },
2917
3051
  "immutable": true,
2918
3052
  "locationInModule": {
2919
3053
  "filename": "src/esbuild-types.ts",
2920
- "line": 35
3054
+ "line": 56
2921
3055
  },
2922
3056
  "name": "color",
2923
3057
  "optional": true,
@@ -2928,12 +3062,13 @@
2928
3062
  {
2929
3063
  "abstract": true,
2930
3064
  "docs": {
2931
- "stability": "stable"
3065
+ "stability": "stable",
3066
+ "summary": "Documentation: https://esbuild.github.io/api/#define."
2932
3067
  },
2933
3068
  "immutable": true,
2934
3069
  "locationInModule": {
2935
3070
  "filename": "src/esbuild-types.ts",
2936
- "line": 31
3071
+ "line": 49
2937
3072
  },
2938
3073
  "name": "define",
2939
3074
  "optional": true,
@@ -2954,7 +3089,7 @@
2954
3089
  "immutable": true,
2955
3090
  "locationInModule": {
2956
3091
  "filename": "src/esbuild-types.ts",
2957
- "line": 164
3092
+ "line": 228
2958
3093
  },
2959
3094
  "name": "footer",
2960
3095
  "optional": true,
@@ -2965,12 +3100,13 @@
2965
3100
  {
2966
3101
  "abstract": true,
2967
3102
  "docs": {
2968
- "stability": "stable"
3103
+ "stability": "stable",
3104
+ "summary": "Documentation: https://esbuild.github.io/api/#format."
2969
3105
  },
2970
3106
  "immutable": true,
2971
3107
  "locationInModule": {
2972
3108
  "filename": "src/esbuild-types.ts",
2973
- "line": 15
3109
+ "line": 20
2974
3110
  },
2975
3111
  "name": "format",
2976
3112
  "optional": true,
@@ -2981,12 +3117,13 @@
2981
3117
  {
2982
3118
  "abstract": true,
2983
3119
  "docs": {
2984
- "stability": "stable"
3120
+ "stability": "stable",
3121
+ "summary": "Documentation: https://esbuild.github.io/api/#globalName."
2985
3122
  },
2986
3123
  "immutable": true,
2987
3124
  "locationInModule": {
2988
3125
  "filename": "src/esbuild-types.ts",
2989
- "line": 16
3126
+ "line": 22
2990
3127
  },
2991
3128
  "name": "globalName",
2992
3129
  "optional": true,
@@ -2997,12 +3134,13 @@
2997
3134
  {
2998
3135
  "abstract": true,
2999
3136
  "docs": {
3000
- "stability": "stable"
3137
+ "stability": "stable",
3138
+ "summary": "Documentation: https://esbuild.github.io/api/#ignore-annotations."
3001
3139
  },
3002
3140
  "immutable": true,
3003
3141
  "locationInModule": {
3004
3142
  "filename": "src/esbuild-types.ts",
3005
- "line": 25
3143
+ "line": 39
3006
3144
  },
3007
3145
  "name": "ignoreAnnotations",
3008
3146
  "optional": true,
@@ -3013,12 +3151,13 @@
3013
3151
  {
3014
3152
  "abstract": true,
3015
3153
  "docs": {
3016
- "stability": "stable"
3154
+ "stability": "stable",
3155
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx."
3017
3156
  },
3018
3157
  "immutable": true,
3019
3158
  "locationInModule": {
3020
3159
  "filename": "src/esbuild-types.ts",
3021
- "line": 27
3160
+ "line": 42
3022
3161
  },
3023
3162
  "name": "jsx",
3024
3163
  "optional": true,
@@ -3029,12 +3168,13 @@
3029
3168
  {
3030
3169
  "abstract": true,
3031
3170
  "docs": {
3032
- "stability": "stable"
3171
+ "stability": "stable",
3172
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx-factory."
3033
3173
  },
3034
3174
  "immutable": true,
3035
3175
  "locationInModule": {
3036
3176
  "filename": "src/esbuild-types.ts",
3037
- "line": 28
3177
+ "line": 44
3038
3178
  },
3039
3179
  "name": "jsxFactory",
3040
3180
  "optional": true,
@@ -3045,12 +3185,13 @@
3045
3185
  {
3046
3186
  "abstract": true,
3047
3187
  "docs": {
3048
- "stability": "stable"
3188
+ "stability": "stable",
3189
+ "summary": "Documentation: https://esbuild.github.io/api/#jsx-fragment."
3049
3190
  },
3050
3191
  "immutable": true,
3051
3192
  "locationInModule": {
3052
3193
  "filename": "src/esbuild-types.ts",
3053
- "line": 29
3194
+ "line": 46
3054
3195
  },
3055
3196
  "name": "jsxFragment",
3056
3197
  "optional": true,
@@ -3061,12 +3202,13 @@
3061
3202
  {
3062
3203
  "abstract": true,
3063
3204
  "docs": {
3064
- "stability": "stable"
3205
+ "stability": "stable",
3206
+ "summary": "Documentation: https://esbuild.github.io/api/#keep-names."
3065
3207
  },
3066
3208
  "immutable": true,
3067
3209
  "locationInModule": {
3068
3210
  "filename": "src/esbuild-types.ts",
3069
- "line": 33
3211
+ "line": 53
3070
3212
  },
3071
3213
  "name": "keepNames",
3072
3214
  "optional": true,
@@ -3077,12 +3219,13 @@
3077
3219
  {
3078
3220
  "abstract": true,
3079
3221
  "docs": {
3080
- "stability": "stable"
3222
+ "stability": "stable",
3223
+ "summary": "Documentation: https://esbuild.github.io/api/#legal-comments."
3081
3224
  },
3082
3225
  "immutable": true,
3083
3226
  "locationInModule": {
3084
3227
  "filename": "src/esbuild-types.ts",
3085
- "line": 11
3228
+ "line": 13
3086
3229
  },
3087
3230
  "name": "legalComments",
3088
3231
  "optional": true,
@@ -3098,7 +3241,7 @@
3098
3241
  "immutable": true,
3099
3242
  "locationInModule": {
3100
3243
  "filename": "src/esbuild-types.ts",
3101
- "line": 162
3244
+ "line": 226
3102
3245
  },
3103
3246
  "name": "loader",
3104
3247
  "optional": true,
@@ -3109,12 +3252,13 @@
3109
3252
  {
3110
3253
  "abstract": true,
3111
3254
  "docs": {
3112
- "stability": "stable"
3255
+ "stability": "stable",
3256
+ "summary": "Documentation: https://esbuild.github.io/api/#log-level."
3113
3257
  },
3114
3258
  "immutable": true,
3115
3259
  "locationInModule": {
3116
3260
  "filename": "src/esbuild-types.ts",
3117
- "line": 36
3261
+ "line": 58
3118
3262
  },
3119
3263
  "name": "logLevel",
3120
3264
  "optional": true,
@@ -3125,12 +3269,13 @@
3125
3269
  {
3126
3270
  "abstract": true,
3127
3271
  "docs": {
3128
- "stability": "stable"
3272
+ "stability": "stable",
3273
+ "summary": "Documentation: https://esbuild.github.io/api/#log-limit."
3129
3274
  },
3130
3275
  "immutable": true,
3131
3276
  "locationInModule": {
3132
3277
  "filename": "src/esbuild-types.ts",
3133
- "line": 37
3278
+ "line": 60
3134
3279
  },
3135
3280
  "name": "logLimit",
3136
3281
  "optional": true,
@@ -3141,12 +3286,13 @@
3141
3286
  {
3142
3287
  "abstract": true,
3143
3288
  "docs": {
3144
- "stability": "stable"
3289
+ "stability": "stable",
3290
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
3145
3291
  },
3146
3292
  "immutable": true,
3147
3293
  "locationInModule": {
3148
3294
  "filename": "src/esbuild-types.ts",
3149
- "line": 19
3295
+ "line": 27
3150
3296
  },
3151
3297
  "name": "minify",
3152
3298
  "optional": true,
@@ -3157,12 +3303,13 @@
3157
3303
  {
3158
3304
  "abstract": true,
3159
3305
  "docs": {
3160
- "stability": "stable"
3306
+ "stability": "stable",
3307
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
3161
3308
  },
3162
3309
  "immutable": true,
3163
3310
  "locationInModule": {
3164
3311
  "filename": "src/esbuild-types.ts",
3165
- "line": 21
3312
+ "line": 31
3166
3313
  },
3167
3314
  "name": "minifyIdentifiers",
3168
3315
  "optional": true,
@@ -3173,12 +3320,13 @@
3173
3320
  {
3174
3321
  "abstract": true,
3175
3322
  "docs": {
3176
- "stability": "stable"
3323
+ "stability": "stable",
3324
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
3177
3325
  },
3178
3326
  "immutable": true,
3179
3327
  "locationInModule": {
3180
3328
  "filename": "src/esbuild-types.ts",
3181
- "line": 22
3329
+ "line": 33
3182
3330
  },
3183
3331
  "name": "minifySyntax",
3184
3332
  "optional": true,
@@ -3189,12 +3337,13 @@
3189
3337
  {
3190
3338
  "abstract": true,
3191
3339
  "docs": {
3192
- "stability": "stable"
3340
+ "stability": "stable",
3341
+ "summary": "Documentation: https://esbuild.github.io/api/#minify."
3193
3342
  },
3194
3343
  "immutable": true,
3195
3344
  "locationInModule": {
3196
3345
  "filename": "src/esbuild-types.ts",
3197
- "line": 20
3346
+ "line": 29
3198
3347
  },
3199
3348
  "name": "minifyWhitespace",
3200
3349
  "optional": true,
@@ -3205,12 +3354,13 @@
3205
3354
  {
3206
3355
  "abstract": true,
3207
3356
  "docs": {
3208
- "stability": "stable"
3357
+ "stability": "stable",
3358
+ "summary": "Documentation: https://esbuild.github.io/api/#pure."
3209
3359
  },
3210
3360
  "immutable": true,
3211
3361
  "locationInModule": {
3212
3362
  "filename": "src/esbuild-types.ts",
3213
- "line": 32
3363
+ "line": 51
3214
3364
  },
3215
3365
  "name": "pure",
3216
3366
  "optional": true,
@@ -3231,7 +3381,7 @@
3231
3381
  "immutable": true,
3232
3382
  "locationInModule": {
3233
3383
  "filename": "src/esbuild-types.ts",
3234
- "line": 161
3384
+ "line": 225
3235
3385
  },
3236
3386
  "name": "sourcefile",
3237
3387
  "optional": true,
@@ -3242,12 +3392,13 @@
3242
3392
  {
3243
3393
  "abstract": true,
3244
3394
  "docs": {
3245
- "stability": "stable"
3395
+ "stability": "stable",
3396
+ "summary": "Documentation: https://esbuild.github.io/api/#sourcemap."
3246
3397
  },
3247
3398
  "immutable": true,
3248
3399
  "locationInModule": {
3249
3400
  "filename": "src/esbuild-types.ts",
3250
- "line": 10
3401
+ "line": 11
3251
3402
  },
3252
3403
  "name": "sourcemap",
3253
3404
  "optional": true,
@@ -3267,12 +3418,13 @@
3267
3418
  {
3268
3419
  "abstract": true,
3269
3420
  "docs": {
3270
- "stability": "stable"
3421
+ "stability": "stable",
3422
+ "summary": "Documentation: https://esbuild.github.io/api/#source-root."
3271
3423
  },
3272
3424
  "immutable": true,
3273
3425
  "locationInModule": {
3274
3426
  "filename": "src/esbuild-types.ts",
3275
- "line": 12
3427
+ "line": 15
3276
3428
  },
3277
3429
  "name": "sourceRoot",
3278
3430
  "optional": true,
@@ -3283,12 +3435,13 @@
3283
3435
  {
3284
3436
  "abstract": true,
3285
3437
  "docs": {
3286
- "stability": "stable"
3438
+ "stability": "stable",
3439
+ "summary": "Documentation: https://esbuild.github.io/api/#sources-content."
3287
3440
  },
3288
3441
  "immutable": true,
3289
3442
  "locationInModule": {
3290
3443
  "filename": "src/esbuild-types.ts",
3291
- "line": 13
3444
+ "line": 17
3292
3445
  },
3293
3446
  "name": "sourcesContent",
3294
3447
  "optional": true,
@@ -3299,12 +3452,13 @@
3299
3452
  {
3300
3453
  "abstract": true,
3301
3454
  "docs": {
3302
- "stability": "stable"
3455
+ "stability": "stable",
3456
+ "summary": "Documentation: https://esbuild.github.io/api/#target."
3303
3457
  },
3304
3458
  "immutable": true,
3305
3459
  "locationInModule": {
3306
3460
  "filename": "src/esbuild-types.ts",
3307
- "line": 17
3461
+ "line": 24
3308
3462
  },
3309
3463
  "name": "target",
3310
3464
  "optional": true,
@@ -3329,12 +3483,13 @@
3329
3483
  {
3330
3484
  "abstract": true,
3331
3485
  "docs": {
3332
- "stability": "stable"
3486
+ "stability": "stable",
3487
+ "summary": "Documentation: https://esbuild.github.io/api/#tree-shaking."
3333
3488
  },
3334
3489
  "immutable": true,
3335
3490
  "locationInModule": {
3336
3491
  "filename": "src/esbuild-types.ts",
3337
- "line": 24
3492
+ "line": 37
3338
3493
  },
3339
3494
  "name": "treeShaking",
3340
3495
  "optional": true,
@@ -3350,7 +3505,7 @@
3350
3505
  "immutable": true,
3351
3506
  "locationInModule": {
3352
3507
  "filename": "src/esbuild-types.ts",
3353
- "line": 159
3508
+ "line": 223
3354
3509
  },
3355
3510
  "name": "tsconfigRaw",
3356
3511
  "optional": true,
@@ -3361,6 +3516,66 @@
3361
3516
  ],
3362
3517
  "symbolId": "src/esbuild-types:TransformOptions"
3363
3518
  },
3519
+ "@mrgrain/cdk-esbuild.TransformerProps": {
3520
+ "assembly": "@mrgrain/cdk-esbuild",
3521
+ "datatype": true,
3522
+ "docs": {
3523
+ "stability": "experimental"
3524
+ },
3525
+ "fqn": "@mrgrain/cdk-esbuild.TransformerProps",
3526
+ "kind": "interface",
3527
+ "locationInModule": {
3528
+ "filename": "src/inline-code.ts",
3529
+ "line": 9
3530
+ },
3531
+ "name": "TransformerProps",
3532
+ "properties": [
3533
+ {
3534
+ "abstract": true,
3535
+ "docs": {
3536
+ "custom": {
3537
+ "throws": "esbuild.TransformFailure",
3538
+ "type": "esbuild.transformSync"
3539
+ },
3540
+ "default": "esbuild.transformSync",
3541
+ "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.",
3542
+ "returns": "esbuild.TransformResult",
3543
+ "stability": "experimental",
3544
+ "summary": "Escape hatch to provide the bundler with a custom transform function."
3545
+ },
3546
+ "immutable": true,
3547
+ "locationInModule": {
3548
+ "filename": "src/inline-code.ts",
3549
+ "line": 29
3550
+ },
3551
+ "name": "transformFn",
3552
+ "optional": true,
3553
+ "type": {
3554
+ "primitive": "any"
3555
+ }
3556
+ },
3557
+ {
3558
+ "abstract": true,
3559
+ "docs": {
3560
+ "remarks": "Please refer to the esbuild Transform API docs for details.",
3561
+ "see": "https://esbuild.github.io/api/#transform-api",
3562
+ "stability": "stable",
3563
+ "summary": "Transform options passed on to esbuild."
3564
+ },
3565
+ "immutable": true,
3566
+ "locationInModule": {
3567
+ "filename": "src/inline-code.ts",
3568
+ "line": 16
3569
+ },
3570
+ "name": "transformOptions",
3571
+ "optional": true,
3572
+ "type": {
3573
+ "fqn": "@mrgrain/cdk-esbuild.TransformOptions"
3574
+ }
3575
+ }
3576
+ ],
3577
+ "symbolId": "src/inline-code:TransformerProps"
3578
+ },
3364
3579
  "@mrgrain/cdk-esbuild.TypeScriptAsset": {
3365
3580
  "assembly": "@mrgrain/cdk-esbuild",
3366
3581
  "docs": {
@@ -3401,7 +3616,7 @@
3401
3616
  "kind": "class",
3402
3617
  "locationInModule": {
3403
3618
  "filename": "src/asset.ts",
3404
- "line": 103
3619
+ "line": 105
3405
3620
  },
3406
3621
  "name": "TypeScriptAsset",
3407
3622
  "symbolId": "src/asset:TypeScriptAsset"
@@ -3824,6 +4039,6 @@
3824
4039
  "symbolId": "src/source:TypeScriptSourceProps"
3825
4040
  }
3826
4041
  },
3827
- "version": "2.0.0-rc.0",
3828
- "fingerprint": "mey3tjuALJueRwEzfybW1xl1ivwlTONiqWoQvgaypK8="
4042
+ "version": "2.2.0",
4043
+ "fingerprint": "WEt77sApiJYYD8JCNhqp7QXxn06Kgsh0wo1M4P/9eTI="
3829
4044
  }