Skip to content

Commit

Permalink
fix: use react-dom/client in rollup config (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Limon Monte authored Jul 22, 2022
1 parent aa8d14b commit 4ce9ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand All @@ -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 }) => {
Expand Down

0 comments on commit 4ce9ca9

Please sign in to comment.