diff --git a/rollup.config.js b/rollup.config.js index f12bb0fe..1da15c62 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,7 +28,8 @@ const GLOBALS = { }; const PLUGINS = [ - typescript(), + typescript({tsconfig: './tsconfig.json', declarationDir: './'}), + , resolve({ browser: true, resolveOnly: [/^(?!react$)/], diff --git a/tsconfig.json b/tsconfig.json index 297995e4..61e2021e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,6 @@ "src/index.tsx", "src/index.test.tsx", "examples/**/*.tsx" - ] + ], + "exclude": ["node_modules", "./dist"] }