mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[rollup] Include typescript definitions in build
Emit our TypeScript definitions as well in the build so things like options have typechecking
This commit is contained in:
1 parent
52afd8a566
commit
0841caab8e
2 files changed
+3
No files matched your search
@@ -17,6 +17,7 @@ export default {
|
||||
},
|
||||
plugins: [
|
||||
typescript({
|
||||
tsconfig: "./tsconfig.json",
|
||||
compilerOptions: {
|
||||
noEmit: true,
|
||||
},
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "nodenext",
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist",
|
||||
"declarationMap": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
// https://github.com/microsoft/TypeScript/issues/30925
|
||||
|
||||
Reference in new issue
Block a user