Skip to content

sideEffects: false causing esbuild treeshaking to remove Carousel and Table #9138

@JaccovdP

Description

@JaccovdP

The adaptivecards package incorrectly has sideEffects set to false in the package.json

This results in several elements, such as carousel and table, not working because of tree shaking in esbuild.

There's a workaround available by doing the following:

import * as AC from 'adaptivecards';

export class App {
  #ac = AdaptiveCards;
}

Minimal repro:
Repro, broken
Repro, workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions