Skip to content

Commit 0af211a

Browse files
committed
Externals also necessery for prop-types
1 parent c3177aa commit 0af211a

File tree

3 files changed

+25
-799
lines changed

3 files changed

+25
-799
lines changed

tools/webpack/configFactory.js

+6
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)