We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6afdaf commit 0934656Copy full SHA for 0934656
packages/@aws-cdk/core/lib/asset-staging.ts
@@ -189,7 +189,7 @@ export class AssetStaging extends CoreConstruct {
189
if (props.bundling) {
190
// Check if we actually have to bundle for this stack
191
const bundlingStacks: string[] = this.node.tryGetContext(cxapi.BUNDLING_STACKS) ?? ['*'];
192
- skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).stackName, pattern));
+ skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).node.id, pattern));
193
const bundling = props.bundling;
194
stageThisAsset = () => this.stageByBundling(bundling, skip);
195
} else {
0 commit comments