diff --git a/rollup.config.ts b/rollup.config.ts index 776d2912..838ed559 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -29,6 +29,10 @@ const rollupConfig = defineConfig([ file: packageJson.module, format: 'esm', sourcemap: !isProduction, + globals: { + react: 'React', + 'react-dom': 'ReactDOM', + }, }, ], plugins: [