mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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