Skip to content

Commit

Permalink
allow bundling options
Browse files Browse the repository at this point in the history
  • Loading branch information
bergjaak committed May 15, 2024
1 parent 9869ea9 commit c3212e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/aws-cdk-lib/aws-lambda/lib/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ export abstract class Code {
commandOptions?: {[option: string]: any},
assetOptions?: s3_assets.AssetOptions,
): AssetCode {
if (assetOptions?.bundling !== undefined) {
// Bundling is for options regarding "Bundl[ing] the asset by executing a command in a Docker container or a custom bundling provider," which
throw new Error('Bundling options cannot be specified for assets built with custom command.');
}
if (command.length === 0) {
throw new Error('command must contain at least one argument. For example, ["node", "buildFile.js"].');
}
Expand Down

0 comments on commit c3212e8

Please sign in to comment.