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

Remove warnings when compiling in browser + speedup #60

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

swazrgb
Copy link
Collaborator

@swazrgb swazrgb commented Mar 20, 2024

  • Remove warnings when compiling in browser + speedup
    Previously the typescript libraries were provided via tsvfs.createDefaultMapFromCDN which includes additional definition files that we do not use, including dom.d.ts

    This produces irrelevant warnings when compiling the typescript source files in the browser. We now generate a lib_dts.ts, similar to behavior_dts.ts, which contains the relevant library files that are used during compilation.

    An added benefit is that compilation feels faster than before.

Previously the typescript libraries were provided via tsvfs.createDefaultMapFromCDN
which includes additional definition files that we do not use, including dom.d.ts

This produces irrelevant warnings when compiling the typescript source files in the browser.
We now generate a lib_dts.ts, similar to behavior_dts.ts, which contains the relevant library
files that are used during compilation.

An added benefit is that compilation feels faster than before.
@swazrgb swazrgb changed the title Website tweaks Remove warnings when compiling in browser + speedup Mar 20, 2024
Copy link
Owner

@ribrdb ribrdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I've been wanting to clean up those errors.

@ribrdb ribrdb merged commit 9b3417a into ribrdb:main Mar 21, 2024
3 checks passed
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.

2 participants