-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
[compiler] Disable emit of .tsbuildinfo #31459
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks! Could you check if this slows down builds of the playground locally? We use the dist version of the compiler there for local development. Alternatively we could prune this file from packages built in https://github.com/facebook/react/blob/main/compiler/scripts/release/publish.js so this is only removed for npm builds. |
Good point!
During testing, I did not recognize any change in hot-reloading-speed in watch mode: with
without
(both builds fluctuate ~2s with the first build being slower) Rollup still seems to have a
Possible, too. In that case we should set What's your opinion? |
Thanks for investigating! I think removing it just for npm builds is the way to go. While it might not affect build times, it may still be used for incremental rebuilds in dev as code is being edited. Would you mind modifying our compiler release script to include a Set of disallowed filenames from being included? |
`@rollup/plugin-typescript` emits a warning while building, hinting that `outputToFilesystem` defaults to true. To keep behavior and remove the warning, we just set it to `true`. Although "noEmit" is set to `true` for the tsconfig, rollup writes a .tsbuildinfo. The .tsbuildinfo is then also shipped inside the npm module and doesn't offer any benefit for library consumers.
6baa1c8
to
a94eafa
Compare
While looking at the publish script, I realized that it may be cumbersome to add exclusion logic to the script. Instead, I changed Verified using
I changed |
Thank you! |
Summary
@rollup/plugin-typescript
emits a warning while building, hinting thatoutputToFilesystem
defaults to true.Although "noEmit" is set to
true
for the tsconfig, rollup writes adist/.tsbuildinfo
. That file is then also shipped inside the npm module and doesn't offer any benefit for library consumers. Setting this option to false results in the file not being written and thus omitted from the npm module.How did you test this change?
dist/.tsbuildinfo
is not emitted any more.