Skip to content

Commit 042397c

Browse files
committed
Fixes externals for UMD build.
1 parent f79d944 commit 042397c

File tree

3 files changed

+46
-262
lines changed

3 files changed

+46
-262
lines changed

tools/webpack/configFactory.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ function webpackConfigFactory({ target }) {
3232
commonjs: 'react-dom',
3333
commonjs2: 'react-dom',
3434
},
35+
'prop-types': {
36+
root: 'PropTypes',
37+
amd: 'prop-types',
38+
commonjs: 'prop-types',
39+
commonjs2: 'prop-types',
40+
},
3541
},
3642
plugins: removeEmpty([
3743
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)