diff --git a/compiler/packages/babel-plugin-react-forget/rollup.config.js b/compiler/packages/babel-plugin-react-forget/rollup.config.js index 9ab1f39399..ec6573a751 100644 --- a/compiler/packages/babel-plugin-react-forget/rollup.config.js +++ b/compiler/packages/babel-plugin-react-forget/rollup.config.js @@ -17,6 +17,7 @@ export default { }, plugins: [ typescript({ + tsconfig: "./tsconfig.json", compilerOptions: { noEmit: true, }, diff --git a/compiler/packages/babel-plugin-react-forget/tsconfig.json b/compiler/packages/babel-plugin-react-forget/tsconfig.json index 692168976d..f9437d1456 100644 --- a/compiler/packages/babel-plugin-react-forget/tsconfig.json +++ b/compiler/packages/babel-plugin-react-forget/tsconfig.json @@ -3,6 +3,8 @@ "compilerOptions": { "moduleResolution": "nodenext", "declaration": true, + "declarationDir": "./dist", + "declarationMap": true, "rootDir": "src", "outDir": "dist", // https://github.com/microsoft/TypeScript/issues/30925