diff --git a/packages/ui-react/vite.config.ts b/packages/ui-react/vite.config.ts index ac65a58c..8d8c2c70 100644 --- a/packages/ui-react/vite.config.ts +++ b/packages/ui-react/vite.config.ts @@ -35,11 +35,13 @@ export default defineConfig({ } }, rollupOptions: { - external: ['react', 'react-dom', '@tonconnect/ui'], + external: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime', '@tonconnect/ui'], output: { globals: { react: 'React', 'react-dom': 'ReactDOM', + 'react-dom/client': 'ReactDOMClient', + 'react/jsx-runtime': 'ReactJSXRuntime', '@tonconnect/ui': 'TON_CONNECT_UI' } }