Skip to content

Commit 04c64b0

Browse files
committed
Fix react-form-with-constraints-tools react-dom dependency
1 parent 1662da2 commit 04c64b0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/react-form-with-constraints-tools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
},
4040

4141
"peerDependencies": {
42-
"react-form-with-constraints": "^0.10.0"
42+
"react-form-with-constraints": "^0.10.0",
43+
"react-dom": ">=16"
4344
},
4445

4546
"devDependencies": {

packages/react-form-with-constraints-tools/rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ export default {
2525
globals: {
2626
'react-form-with-constraints': 'ReactFormWithConstraints',
2727
react: 'React',
28-
'prop-types': 'PropTypes'
28+
'prop-types': 'PropTypes',
29+
'react-dom': 'ReactDOM'
2930
}
3031
},
3132

32-
external: ['react-form-with-constraints', 'react', 'prop-types'],
33+
external: ['react-form-with-constraints', 'react', 'prop-types', 'react-dom'],
3334

3435
plugins: [
3536
typescript({

0 commit comments

Comments
 (0)