Skip to content

Commit 3c15d21

Browse files
authored
[compiler] Disable emit of .tsbuildinfo (#31459)
## Summary `@rollup/plugin-typescript` emits a warning while building, hinting that `outputToFilesystem` defaults to true. Although "noEmit" is set to `true` for the tsconfig, rollup writes a `dist/.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.
1 parent 3644f0b commit 3c15d21

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/packages/babel-plugin-react-compiler/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "dist/index.js",
66
"license": "MIT",
77
"files": [
8-
"dist"
8+
"dist",
9+
"!*.tsbuildinfo"
910
],
1011
"scripts": {
1112
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",

compiler/packages/babel-plugin-react-compiler/rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const DEV_ROLLUP_CONFIG = {
2828
plugins: [
2929
typescript({
3030
tsconfig: './tsconfig.json',
31+
outputToFilesystem: true,
3132
compilerOptions: {
3233
noEmit: true,
3334
},

0 commit comments

Comments
 (0)