-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
35 lines (33 loc) · 722 Bytes
/
Copy pathindex.js
File metadata and controls
35 lines (33 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Webpack config helpers for externalizing react from your bundle.
*
* @author Maciej Chałapuk (maciej@chalapuk.pl)
*/
exports.externals = {
'react': {
root: 'React',
commonjs: 'react',
commonjs2: 'react',
},
'prop-types': {
root: 'PropTypes',
commonjs: 'prop-types',
commonjs2: 'prop-types',
},
'react-dom': {
root: 'ReactDOM',
commonjs: 'react-dom',
commonjs2: 'react-dom',
},
'react-dom/server': {
root: 'ReactDOMServer',
commonjs: 'react-dom/server',
commonjs2: 'react-dom/server',
},
};
exports.noParse = [
require.resolve('react'),
require.resolve('prop-types'),
require.resolve('react-dom'),
require.resolve('react-dom/server'),
];