From 4ce9ca9be2c4c355bbd88dfb93836ef360a8a812 Mon Sep 17 00:00:00 2001 From: Limon Monte Date: Fri, 22 Jul 2022 14:38:38 +0300 Subject: [PATCH] fix: use react-dom/client in rollup config (#205) --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 54fb5aa..694d904 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -37,7 +37,7 @@ export default [false, true].map((minify) => { } return { input: 'src/index.js', - external: ['react', 'react-dom'], + external: ['react', 'react-dom/client'], plugins, output: [ { @@ -51,7 +51,7 @@ export default [false, true].map((minify) => { name: 'sweetalert2ReactContent', globals: { 'react': 'React', - 'react-dom': 'ReactDOM', + 'react-dom/client': 'ReactDOM', }, }, ].map(({ format, ...rest }) => {