@mrgrain/cdk-esbuild 3.3.0 → 4.0.0-alpha.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/.gitattributes +1 -1
- package/.jsii +137 -53
- package/.projenrc.ts +25 -24
- package/API.md +144 -42
- package/CHANGELOG.md +380 -0
- package/README.md +25 -23
- package/lib/asset.js +4 -5
- package/lib/bundler.d.ts +21 -5
- package/lib/bundler.js +46 -13
- package/lib/code.js +6 -7
- package/lib/esbuild-types.d.ts +11 -0
- package/lib/esbuild-types.js +1 -1
- package/lib/inline-code.js +4 -4
- package/lib/source.js +2 -2
- package/package.json +28 -20
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
package/.gitattributes
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/.github/pull_request_template.md linguist-generated
|
|
7
7
|
/.github/workflows/build.yml linguist-generated
|
|
8
8
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
9
|
-
/.github/workflows/
|
|
9
|
+
/.github/workflows/release.yml linguist-generated
|
|
10
10
|
/.gitignore linguist-generated
|
|
11
11
|
/.mergify.yml linguist-generated
|
|
12
12
|
/.npmignore linguist-generated
|
package/.jsii
CHANGED
|
@@ -2777,7 +2777,7 @@
|
|
|
2777
2777
|
"stability": "stable"
|
|
2778
2778
|
},
|
|
2779
2779
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2780
|
-
"jsiiVersion": "1.
|
|
2780
|
+
"jsiiVersion": "1.60.1 (build 2799dc8)",
|
|
2781
2781
|
"keywords": [
|
|
2782
2782
|
"aws-cdk",
|
|
2783
2783
|
"bundler",
|
|
@@ -2800,16 +2800,20 @@
|
|
|
2800
2800
|
},
|
|
2801
2801
|
"name": "@mrgrain/cdk-esbuild",
|
|
2802
2802
|
"readme": {
|
|
2803
|
-
"markdown": "# cdk-esbuild\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\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[Getting started](#getting-started) | [Migrating to v3](#migrating-to-v3) |\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@3\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@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_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-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 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/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 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 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 _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\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### 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"
|
|
2803
|
+
"markdown": "# cdk-esbuild\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started) | [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#### 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"
|
|
2804
2804
|
},
|
|
2805
2805
|
"repository": {
|
|
2806
2806
|
"type": "git",
|
|
2807
|
-
"url": "
|
|
2807
|
+
"url": "https://github.com/mrgrain/cdk-esbuild"
|
|
2808
2808
|
},
|
|
2809
2809
|
"schema": "jsii/0.10.0",
|
|
2810
2810
|
"targets": {
|
|
2811
2811
|
"js": {
|
|
2812
2812
|
"npm": "@mrgrain/cdk-esbuild"
|
|
2813
|
+
},
|
|
2814
|
+
"python": {
|
|
2815
|
+
"distName": "mrgrain.cdk_esbuild",
|
|
2816
|
+
"module": "mrgrain.cdk-esbuild"
|
|
2813
2817
|
}
|
|
2814
2818
|
},
|
|
2815
2819
|
"types": {
|
|
@@ -2900,7 +2904,7 @@
|
|
|
2900
2904
|
"kind": "interface",
|
|
2901
2905
|
"locationInModule": {
|
|
2902
2906
|
"filename": "src/esbuild-types.ts",
|
|
2903
|
-
"line":
|
|
2907
|
+
"line": 76
|
|
2904
2908
|
},
|
|
2905
2909
|
"name": "BuildOptions",
|
|
2906
2910
|
"properties": [
|
|
@@ -2913,7 +2917,7 @@
|
|
|
2913
2917
|
"immutable": true,
|
|
2914
2918
|
"locationInModule": {
|
|
2915
2919
|
"filename": "src/esbuild-types.ts",
|
|
2916
|
-
"line":
|
|
2920
|
+
"line": 128
|
|
2917
2921
|
},
|
|
2918
2922
|
"name": "absWorkingDir",
|
|
2919
2923
|
"optional": true,
|
|
@@ -2930,7 +2934,7 @@
|
|
|
2930
2934
|
"immutable": true,
|
|
2931
2935
|
"locationInModule": {
|
|
2932
2936
|
"filename": "src/esbuild-types.ts",
|
|
2933
|
-
"line":
|
|
2937
|
+
"line": 106
|
|
2934
2938
|
},
|
|
2935
2939
|
"name": "allowOverwrite",
|
|
2936
2940
|
"optional": true,
|
|
@@ -2947,7 +2951,7 @@
|
|
|
2947
2951
|
"immutable": true,
|
|
2948
2952
|
"locationInModule": {
|
|
2949
2953
|
"filename": "src/esbuild-types.ts",
|
|
2950
|
-
"line":
|
|
2954
|
+
"line": 118
|
|
2951
2955
|
},
|
|
2952
2956
|
"name": "assetNames",
|
|
2953
2957
|
"optional": true,
|
|
@@ -2964,7 +2968,7 @@
|
|
|
2964
2968
|
"immutable": true,
|
|
2965
2969
|
"locationInModule": {
|
|
2966
2970
|
"filename": "src/esbuild-types.ts",
|
|
2967
|
-
"line":
|
|
2971
|
+
"line": 122
|
|
2968
2972
|
},
|
|
2969
2973
|
"name": "banner",
|
|
2970
2974
|
"optional": true,
|
|
@@ -2986,7 +2990,7 @@
|
|
|
2986
2990
|
"immutable": true,
|
|
2987
2991
|
"locationInModule": {
|
|
2988
2992
|
"filename": "src/esbuild-types.ts",
|
|
2989
|
-
"line":
|
|
2993
|
+
"line": 78
|
|
2990
2994
|
},
|
|
2991
2995
|
"name": "bundle",
|
|
2992
2996
|
"optional": true,
|
|
@@ -3020,7 +3024,7 @@
|
|
|
3020
3024
|
"immutable": true,
|
|
3021
3025
|
"locationInModule": {
|
|
3022
3026
|
"filename": "src/esbuild-types.ts",
|
|
3023
|
-
"line":
|
|
3027
|
+
"line": 116
|
|
3024
3028
|
},
|
|
3025
3029
|
"name": "chunkNames",
|
|
3026
3030
|
"optional": true,
|
|
@@ -3054,7 +3058,7 @@
|
|
|
3054
3058
|
"immutable": true,
|
|
3055
3059
|
"locationInModule": {
|
|
3056
3060
|
"filename": "src/esbuild-types.ts",
|
|
3057
|
-
"line":
|
|
3061
|
+
"line": 102
|
|
3058
3062
|
},
|
|
3059
3063
|
"name": "conditions",
|
|
3060
3064
|
"optional": true,
|
|
@@ -3120,7 +3124,7 @@
|
|
|
3120
3124
|
"immutable": true,
|
|
3121
3125
|
"locationInModule": {
|
|
3122
3126
|
"filename": "src/esbuild-types.ts",
|
|
3123
|
-
"line":
|
|
3127
|
+
"line": 114
|
|
3124
3128
|
},
|
|
3125
3129
|
"name": "entryNames",
|
|
3126
3130
|
"optional": true,
|
|
@@ -3137,7 +3141,7 @@
|
|
|
3137
3141
|
"immutable": true,
|
|
3138
3142
|
"locationInModule": {
|
|
3139
3143
|
"filename": "src/esbuild-types.ts",
|
|
3140
|
-
"line":
|
|
3144
|
+
"line": 94
|
|
3141
3145
|
},
|
|
3142
3146
|
"name": "external",
|
|
3143
3147
|
"optional": true,
|
|
@@ -3159,7 +3163,7 @@
|
|
|
3159
3163
|
"immutable": true,
|
|
3160
3164
|
"locationInModule": {
|
|
3161
3165
|
"filename": "src/esbuild-types.ts",
|
|
3162
|
-
"line":
|
|
3166
|
+
"line": 124
|
|
3163
3167
|
},
|
|
3164
3168
|
"name": "footer",
|
|
3165
3169
|
"optional": true,
|
|
@@ -3232,7 +3236,7 @@
|
|
|
3232
3236
|
"immutable": true,
|
|
3233
3237
|
"locationInModule": {
|
|
3234
3238
|
"filename": "src/esbuild-types.ts",
|
|
3235
|
-
"line":
|
|
3239
|
+
"line": 126
|
|
3236
3240
|
},
|
|
3237
3241
|
"name": "incremental",
|
|
3238
3242
|
"optional": true,
|
|
@@ -3249,7 +3253,7 @@
|
|
|
3249
3253
|
"immutable": true,
|
|
3250
3254
|
"locationInModule": {
|
|
3251
3255
|
"filename": "src/esbuild-types.ts",
|
|
3252
|
-
"line":
|
|
3256
|
+
"line": 120
|
|
3253
3257
|
},
|
|
3254
3258
|
"name": "inject",
|
|
3255
3259
|
"optional": true,
|
|
@@ -3356,7 +3360,7 @@
|
|
|
3356
3360
|
"immutable": true,
|
|
3357
3361
|
"locationInModule": {
|
|
3358
3362
|
"filename": "src/esbuild-types.ts",
|
|
3359
|
-
"line":
|
|
3363
|
+
"line": 96
|
|
3360
3364
|
},
|
|
3361
3365
|
"name": "loader",
|
|
3362
3366
|
"optional": true,
|
|
@@ -3403,6 +3407,28 @@
|
|
|
3403
3407
|
"primitive": "number"
|
|
3404
3408
|
}
|
|
3405
3409
|
},
|
|
3410
|
+
{
|
|
3411
|
+
"abstract": true,
|
|
3412
|
+
"docs": {
|
|
3413
|
+
"stability": "stable",
|
|
3414
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
3415
|
+
},
|
|
3416
|
+
"immutable": true,
|
|
3417
|
+
"locationInModule": {
|
|
3418
|
+
"filename": "src/esbuild-types.ts",
|
|
3419
|
+
"line": 73
|
|
3420
|
+
},
|
|
3421
|
+
"name": "logOverride",
|
|
3422
|
+
"optional": true,
|
|
3423
|
+
"type": {
|
|
3424
|
+
"collection": {
|
|
3425
|
+
"elementtype": {
|
|
3426
|
+
"primitive": "string"
|
|
3427
|
+
},
|
|
3428
|
+
"kind": "map"
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
},
|
|
3406
3432
|
{
|
|
3407
3433
|
"abstract": true,
|
|
3408
3434
|
"docs": {
|
|
@@ -3412,7 +3438,7 @@
|
|
|
3412
3438
|
"immutable": true,
|
|
3413
3439
|
"locationInModule": {
|
|
3414
3440
|
"filename": "src/esbuild-types.ts",
|
|
3415
|
-
"line":
|
|
3441
|
+
"line": 100
|
|
3416
3442
|
},
|
|
3417
3443
|
"name": "mainFields",
|
|
3418
3444
|
"optional": true,
|
|
@@ -3499,7 +3525,7 @@
|
|
|
3499
3525
|
"immutable": true,
|
|
3500
3526
|
"locationInModule": {
|
|
3501
3527
|
"filename": "src/esbuild-types.ts",
|
|
3502
|
-
"line":
|
|
3528
|
+
"line": 86
|
|
3503
3529
|
},
|
|
3504
3530
|
"name": "metafile",
|
|
3505
3531
|
"optional": true,
|
|
@@ -3584,7 +3610,7 @@
|
|
|
3584
3610
|
"immutable": true,
|
|
3585
3611
|
"locationInModule": {
|
|
3586
3612
|
"filename": "src/esbuild-types.ts",
|
|
3587
|
-
"line":
|
|
3613
|
+
"line": 130
|
|
3588
3614
|
},
|
|
3589
3615
|
"name": "nodePaths",
|
|
3590
3616
|
"optional": true,
|
|
@@ -3606,7 +3632,7 @@
|
|
|
3606
3632
|
"immutable": true,
|
|
3607
3633
|
"locationInModule": {
|
|
3608
3634
|
"filename": "src/esbuild-types.ts",
|
|
3609
|
-
"line":
|
|
3635
|
+
"line": 90
|
|
3610
3636
|
},
|
|
3611
3637
|
"name": "outbase",
|
|
3612
3638
|
"optional": true,
|
|
@@ -3623,7 +3649,7 @@
|
|
|
3623
3649
|
"immutable": true,
|
|
3624
3650
|
"locationInModule": {
|
|
3625
3651
|
"filename": "src/esbuild-types.ts",
|
|
3626
|
-
"line":
|
|
3652
|
+
"line": 88
|
|
3627
3653
|
},
|
|
3628
3654
|
"name": "outdir",
|
|
3629
3655
|
"optional": true,
|
|
@@ -3640,7 +3666,7 @@
|
|
|
3640
3666
|
"immutable": true,
|
|
3641
3667
|
"locationInModule": {
|
|
3642
3668
|
"filename": "src/esbuild-types.ts",
|
|
3643
|
-
"line":
|
|
3669
|
+
"line": 110
|
|
3644
3670
|
},
|
|
3645
3671
|
"name": "outExtension",
|
|
3646
3672
|
"optional": true,
|
|
@@ -3662,7 +3688,7 @@
|
|
|
3662
3688
|
"immutable": true,
|
|
3663
3689
|
"locationInModule": {
|
|
3664
3690
|
"filename": "src/esbuild-types.ts",
|
|
3665
|
-
"line":
|
|
3691
|
+
"line": 84
|
|
3666
3692
|
},
|
|
3667
3693
|
"name": "outfile",
|
|
3668
3694
|
"optional": true,
|
|
@@ -3679,7 +3705,7 @@
|
|
|
3679
3705
|
"immutable": true,
|
|
3680
3706
|
"locationInModule": {
|
|
3681
3707
|
"filename": "src/esbuild-types.ts",
|
|
3682
|
-
"line":
|
|
3708
|
+
"line": 92
|
|
3683
3709
|
},
|
|
3684
3710
|
"name": "platform",
|
|
3685
3711
|
"optional": true,
|
|
@@ -3696,7 +3722,7 @@
|
|
|
3696
3722
|
"immutable": true,
|
|
3697
3723
|
"locationInModule": {
|
|
3698
3724
|
"filename": "src/esbuild-types.ts",
|
|
3699
|
-
"line":
|
|
3725
|
+
"line": 82
|
|
3700
3726
|
},
|
|
3701
3727
|
"name": "preserveSymlinks",
|
|
3702
3728
|
"optional": true,
|
|
@@ -3713,7 +3739,7 @@
|
|
|
3713
3739
|
"immutable": true,
|
|
3714
3740
|
"locationInModule": {
|
|
3715
3741
|
"filename": "src/esbuild-types.ts",
|
|
3716
|
-
"line":
|
|
3742
|
+
"line": 112
|
|
3717
3743
|
},
|
|
3718
3744
|
"name": "publicPath",
|
|
3719
3745
|
"optional": true,
|
|
@@ -3769,7 +3795,7 @@
|
|
|
3769
3795
|
"immutable": true,
|
|
3770
3796
|
"locationInModule": {
|
|
3771
3797
|
"filename": "src/esbuild-types.ts",
|
|
3772
|
-
"line":
|
|
3798
|
+
"line": 98
|
|
3773
3799
|
},
|
|
3774
3800
|
"name": "resolveExtensions",
|
|
3775
3801
|
"optional": true,
|
|
@@ -3851,7 +3877,7 @@
|
|
|
3851
3877
|
"immutable": true,
|
|
3852
3878
|
"locationInModule": {
|
|
3853
3879
|
"filename": "src/esbuild-types.ts",
|
|
3854
|
-
"line":
|
|
3880
|
+
"line": 80
|
|
3855
3881
|
},
|
|
3856
3882
|
"name": "splitting",
|
|
3857
3883
|
"optional": true,
|
|
@@ -3916,7 +3942,7 @@
|
|
|
3916
3942
|
"immutable": true,
|
|
3917
3943
|
"locationInModule": {
|
|
3918
3944
|
"filename": "src/esbuild-types.ts",
|
|
3919
|
-
"line":
|
|
3945
|
+
"line": 108
|
|
3920
3946
|
},
|
|
3921
3947
|
"name": "tsconfig",
|
|
3922
3948
|
"optional": true,
|
|
@@ -3933,7 +3959,7 @@
|
|
|
3933
3959
|
"immutable": true,
|
|
3934
3960
|
"locationInModule": {
|
|
3935
3961
|
"filename": "src/esbuild-types.ts",
|
|
3936
|
-
"line":
|
|
3962
|
+
"line": 104
|
|
3937
3963
|
},
|
|
3938
3964
|
"name": "write",
|
|
3939
3965
|
"optional": true,
|
|
@@ -3954,7 +3980,7 @@
|
|
|
3954
3980
|
"kind": "interface",
|
|
3955
3981
|
"locationInModule": {
|
|
3956
3982
|
"filename": "src/bundler.ts",
|
|
3957
|
-
"line":
|
|
3983
|
+
"line": 23
|
|
3958
3984
|
},
|
|
3959
3985
|
"name": "BundlerProps",
|
|
3960
3986
|
"properties": [
|
|
@@ -3974,7 +4000,7 @@
|
|
|
3974
4000
|
"immutable": true,
|
|
3975
4001
|
"locationInModule": {
|
|
3976
4002
|
"filename": "src/bundler.ts",
|
|
3977
|
-
"line":
|
|
4003
|
+
"line": 79
|
|
3978
4004
|
},
|
|
3979
4005
|
"name": "buildFn",
|
|
3980
4006
|
"optional": true,
|
|
@@ -3985,7 +4011,7 @@
|
|
|
3985
4011
|
{
|
|
3986
4012
|
"abstract": true,
|
|
3987
4013
|
"docs": {
|
|
3988
|
-
"remarks": "
|
|
4014
|
+
"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).",
|
|
3989
4015
|
"see": "https://esbuild.github.io/api/#build-api",
|
|
3990
4016
|
"stability": "stable",
|
|
3991
4017
|
"summary": "Build options passed on to esbuild. Please refer to the esbuild Build API docs for details."
|
|
@@ -3993,7 +4019,7 @@
|
|
|
3993
4019
|
"immutable": true,
|
|
3994
4020
|
"locationInModule": {
|
|
3995
4021
|
"filename": "src/bundler.ts",
|
|
3996
|
-
"line":
|
|
4022
|
+
"line": 42
|
|
3997
4023
|
},
|
|
3998
4024
|
"name": "buildOptions",
|
|
3999
4025
|
"optional": true,
|
|
@@ -4004,19 +4030,55 @@
|
|
|
4004
4030
|
{
|
|
4005
4031
|
"abstract": true,
|
|
4006
4032
|
"docs": {
|
|
4007
|
-
"remarks": "
|
|
4033
|
+
"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```ts\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 `..`.",
|
|
4008
4034
|
"stability": "stable",
|
|
4009
|
-
"summary": "Copy additional files to the
|
|
4035
|
+
"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."
|
|
4010
4036
|
},
|
|
4011
4037
|
"immutable": true,
|
|
4012
4038
|
"locationInModule": {
|
|
4013
4039
|
"filename": "src/bundler.ts",
|
|
4014
|
-
"line":
|
|
4040
|
+
"line": 65
|
|
4015
4041
|
},
|
|
4016
4042
|
"name": "copyDir",
|
|
4017
4043
|
"optional": true,
|
|
4018
4044
|
"type": {
|
|
4019
|
-
"
|
|
4045
|
+
"union": {
|
|
4046
|
+
"types": [
|
|
4047
|
+
{
|
|
4048
|
+
"primitive": "string"
|
|
4049
|
+
},
|
|
4050
|
+
{
|
|
4051
|
+
"collection": {
|
|
4052
|
+
"elementtype": {
|
|
4053
|
+
"primitive": "string"
|
|
4054
|
+
},
|
|
4055
|
+
"kind": "array"
|
|
4056
|
+
}
|
|
4057
|
+
},
|
|
4058
|
+
{
|
|
4059
|
+
"collection": {
|
|
4060
|
+
"elementtype": {
|
|
4061
|
+
"union": {
|
|
4062
|
+
"types": [
|
|
4063
|
+
{
|
|
4064
|
+
"primitive": "string"
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"collection": {
|
|
4068
|
+
"elementtype": {
|
|
4069
|
+
"primitive": "string"
|
|
4070
|
+
},
|
|
4071
|
+
"kind": "array"
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
]
|
|
4075
|
+
}
|
|
4076
|
+
},
|
|
4077
|
+
"kind": "map"
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
]
|
|
4081
|
+
}
|
|
4020
4082
|
}
|
|
4021
4083
|
}
|
|
4022
4084
|
],
|
|
@@ -4069,7 +4131,7 @@
|
|
|
4069
4131
|
},
|
|
4070
4132
|
"locationInModule": {
|
|
4071
4133
|
"filename": "src/bundler.ts",
|
|
4072
|
-
"line":
|
|
4134
|
+
"line": 106
|
|
4073
4135
|
},
|
|
4074
4136
|
"parameters": [
|
|
4075
4137
|
{
|
|
@@ -4120,7 +4182,7 @@
|
|
|
4120
4182
|
"kind": "class",
|
|
4121
4183
|
"locationInModule": {
|
|
4122
4184
|
"filename": "src/bundler.ts",
|
|
4123
|
-
"line":
|
|
4185
|
+
"line": 88
|
|
4124
4186
|
},
|
|
4125
4187
|
"name": "EsbuildBundler",
|
|
4126
4188
|
"properties": [
|
|
@@ -4133,7 +4195,7 @@
|
|
|
4133
4195
|
"immutable": true,
|
|
4134
4196
|
"locationInModule": {
|
|
4135
4197
|
"filename": "src/bundler.ts",
|
|
4136
|
-
"line":
|
|
4198
|
+
"line": 113
|
|
4137
4199
|
},
|
|
4138
4200
|
"name": "entryPoints",
|
|
4139
4201
|
"type": {
|
|
@@ -4170,7 +4232,7 @@
|
|
|
4170
4232
|
"immutable": true,
|
|
4171
4233
|
"locationInModule": {
|
|
4172
4234
|
"filename": "src/bundler.ts",
|
|
4173
|
-
"line":
|
|
4235
|
+
"line": 101
|
|
4174
4236
|
},
|
|
4175
4237
|
"name": "image",
|
|
4176
4238
|
"type": {
|
|
@@ -4185,7 +4247,7 @@
|
|
|
4185
4247
|
"immutable": true,
|
|
4186
4248
|
"locationInModule": {
|
|
4187
4249
|
"filename": "src/bundler.ts",
|
|
4188
|
-
"line":
|
|
4250
|
+
"line": 94
|
|
4189
4251
|
},
|
|
4190
4252
|
"name": "local",
|
|
4191
4253
|
"type": {
|
|
@@ -4200,7 +4262,7 @@
|
|
|
4200
4262
|
"immutable": true,
|
|
4201
4263
|
"locationInModule": {
|
|
4202
4264
|
"filename": "src/bundler.ts",
|
|
4203
|
-
"line":
|
|
4265
|
+
"line": 120
|
|
4204
4266
|
},
|
|
4205
4267
|
"name": "props",
|
|
4206
4268
|
"type": {
|
|
@@ -4918,7 +4980,7 @@
|
|
|
4918
4980
|
"kind": "interface",
|
|
4919
4981
|
"locationInModule": {
|
|
4920
4982
|
"filename": "src/esbuild-types.ts",
|
|
4921
|
-
"line":
|
|
4983
|
+
"line": 237
|
|
4922
4984
|
},
|
|
4923
4985
|
"name": "TransformOptions",
|
|
4924
4986
|
"properties": [
|
|
@@ -4930,7 +4992,7 @@
|
|
|
4930
4992
|
"immutable": true,
|
|
4931
4993
|
"locationInModule": {
|
|
4932
4994
|
"filename": "src/esbuild-types.ts",
|
|
4933
|
-
"line":
|
|
4995
|
+
"line": 242
|
|
4934
4996
|
},
|
|
4935
4997
|
"name": "banner",
|
|
4936
4998
|
"optional": true,
|
|
@@ -5024,7 +5086,7 @@
|
|
|
5024
5086
|
"immutable": true,
|
|
5025
5087
|
"locationInModule": {
|
|
5026
5088
|
"filename": "src/esbuild-types.ts",
|
|
5027
|
-
"line":
|
|
5089
|
+
"line": 243
|
|
5028
5090
|
},
|
|
5029
5091
|
"name": "footer",
|
|
5030
5092
|
"optional": true,
|
|
@@ -5176,7 +5238,7 @@
|
|
|
5176
5238
|
"immutable": true,
|
|
5177
5239
|
"locationInModule": {
|
|
5178
5240
|
"filename": "src/esbuild-types.ts",
|
|
5179
|
-
"line":
|
|
5241
|
+
"line": 241
|
|
5180
5242
|
},
|
|
5181
5243
|
"name": "loader",
|
|
5182
5244
|
"optional": true,
|
|
@@ -5218,6 +5280,28 @@
|
|
|
5218
5280
|
"primitive": "number"
|
|
5219
5281
|
}
|
|
5220
5282
|
},
|
|
5283
|
+
{
|
|
5284
|
+
"abstract": true,
|
|
5285
|
+
"docs": {
|
|
5286
|
+
"stability": "stable",
|
|
5287
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
5288
|
+
},
|
|
5289
|
+
"immutable": true,
|
|
5290
|
+
"locationInModule": {
|
|
5291
|
+
"filename": "src/esbuild-types.ts",
|
|
5292
|
+
"line": 73
|
|
5293
|
+
},
|
|
5294
|
+
"name": "logOverride",
|
|
5295
|
+
"optional": true,
|
|
5296
|
+
"type": {
|
|
5297
|
+
"collection": {
|
|
5298
|
+
"elementtype": {
|
|
5299
|
+
"primitive": "string"
|
|
5300
|
+
},
|
|
5301
|
+
"kind": "map"
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
},
|
|
5221
5305
|
{
|
|
5222
5306
|
"abstract": true,
|
|
5223
5307
|
"docs": {
|
|
@@ -5398,7 +5482,7 @@
|
|
|
5398
5482
|
"immutable": true,
|
|
5399
5483
|
"locationInModule": {
|
|
5400
5484
|
"filename": "src/esbuild-types.ts",
|
|
5401
|
-
"line":
|
|
5485
|
+
"line": 240
|
|
5402
5486
|
},
|
|
5403
5487
|
"name": "sourcefile",
|
|
5404
5488
|
"optional": true,
|
|
@@ -5522,7 +5606,7 @@
|
|
|
5522
5606
|
"immutable": true,
|
|
5523
5607
|
"locationInModule": {
|
|
5524
5608
|
"filename": "src/esbuild-types.ts",
|
|
5525
|
-
"line":
|
|
5609
|
+
"line": 238
|
|
5526
5610
|
},
|
|
5527
5611
|
"name": "tsconfigRaw",
|
|
5528
5612
|
"optional": true,
|
|
@@ -6056,6 +6140,6 @@
|
|
|
6056
6140
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6057
6141
|
}
|
|
6058
6142
|
},
|
|
6059
|
-
"version": "
|
|
6060
|
-
"fingerprint": "
|
|
6143
|
+
"version": "4.0.0-alpha.0",
|
|
6144
|
+
"fingerprint": "BTvRJPKjzz2NhRF5m7XyTvs+O4/382oAYOWTkjesAlI="
|
|
6061
6145
|
}
|