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 ba2498a commit 4552b57Copy full SHA for 4552b57
packages/@aws-cdk/core/lib/stack.ts
@@ -1162,10 +1162,7 @@ export class Stack extends CoreConstruct implements ITaggable {
1162
const bundlingStacks: string[] = this.node.tryGetContext(cxapi.BUNDLING_STACKS) ?? ['*'];
1163
1164
// bundlingStacks is of the form `Stage/Stack`, convert it to `Stage-Stack` before comparing to stack name
1165
- return bundlingStacks.some(pattern => minimatch(
1166
- this.stackName,
1167
- pattern.replace('/', '-'),
1168
- ));
+ return bundlingStacks.some(pattern => minimatch(this.node.path, pattern));
1169
}
1170
1171
0 commit comments