Skip to content

Conversation

@vassudanagunta
Copy link

Fixes #2

Includes test code that demonstrates the issue.

Typescript const enums are not exported in a way accessible to non-Typescript clients. This fixes the issue by simply utilizing the preserveConstEnums compiler option.

This may have a performance impact; If that is unacceptable there are other ways to fix this issue, but the included test file is useful to keep going forward.

Fixes microsoft#2

Includes test code that demonstrates the issue.

Typescript const enums are not exported in a way accessible
to non-Typescript clients. This fixes the issue by simply
utilizing the `preserveConstEnums` compiler option. This may
have a performance impact; If that is unacceptable there are
other ways to fix this issue, but the included test file is
useful to keep going forward.
@msftclas
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ vassudanagunta sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

@Steakeye
Copy link

Steakeye commented Sep 7, 2021

This proves to be a problem when trying got use ESBuild as your bundler...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultEndOfLine enum not accessible in Javacript API

3 participants