From dba669623d893c0d804b2412774295f20ae0cc00 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Thu, 17 Nov 2022 11:46:29 +0200 Subject: [PATCH] fix: clean commonjs output for react component --- components-demo/react-demo/tsconfig.json | 2 +- components/react/rollup.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components-demo/react-demo/tsconfig.json b/components-demo/react-demo/tsconfig.json index 4b6d9a3..4dfbe76 100644 --- a/components-demo/react-demo/tsconfig.json +++ b/components-demo/react-demo/tsconfig.json @@ -4,7 +4,7 @@ "useDefineForClassFields": true, "lib": ["DOM", "DOM.Iterable", "ESNext"], "allowJs": false, - "skipLibCheck": false, + "skipLibCheck": true, "esModuleInterop": false, "allowSyntheticDefaultImports": true, "strict": true, diff --git a/components/react/rollup.config.js b/components/react/rollup.config.js index 13d593e..f67f21b 100644 --- a/components/react/rollup.config.js +++ b/components/react/rollup.config.js @@ -26,6 +26,7 @@ names.forEach((name) => { { file: `dist/${name}.js`, format: 'cjs', + interop: false, }, ], external: ['react'],