Skip to content

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

Merged
mjbvz merged 1 commit into
microsoft:mainfrom
jakebailey:fix-web-bundle
Oct 19, 2022
Merged

Ensure 'undefined' does not make it into tsserver.web.js#164064
mjbvz merged 1 commit into
microsoft:mainfrom
jakebailey:fix-web-bundle

Conversation

@jakebailey

Copy link
Copy Markdown
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

mjbvz commented Oct 19, 2022

Copy link
Copy Markdown
Collaborator

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.

2 participants