Skip to content

v17 enum tree-shaking strategy not working on esbuild #4474

@yaacovCR

Description

@yaacovCR

Hey folks,

The tree-shakable non-TS enum strategy for kinds introduced in:

and discussed in:

appears to not work for esbuild: see demonstration

This appears to be due to the following known limitation within esbuild:

This currently works in both latest rollup and webpack 5.

(Success with rollup and webpack 5 and failure with esbuild was also confirmed locally (not shown) within graphql-js by riffing of some of our newer integration tests,)

@jasonkuhrt @JoviDeCroock

Not sure if this can be fixed by a change on our end, flagging it now and heading to bed. :)

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