Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure 'undefined' does not make it into tsserver.web.js #164064

Merged
merged 1 commit into from Oct 19, 2022

Conversation

jakebailey
Copy link
Member

TS 5.0 won't include dynamicImportCompat; I noticed while vetting VS Code's usage of it that if the file doesn't exist, it accidentally puts undefined into the output file.

This technically works because of automatic semicolon insertion (there's a newline after undefined), but there's no reason to include that expression in the file if we don't have to, and now we can avoid doing string manipulation for TS 5.0+ which will make the build slightly faster.

@mjbvz mjbvz merged commit b99cf7e into microsoft:main Oct 19, 2022
@mjbvz
Copy link
Contributor

mjbvz commented Oct 19, 2022

Thanks!

@mjbvz mjbvz added this to the October 2022 milestone Oct 19, 2022
@jakebailey jakebailey deleted the fix-web-bundle branch October 20, 2022 00:04
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants