Skip to content

Commit a0fb0f5

Browse files
committed
Expanded webpack externals config
1 parent 06dbf92 commit a0fb0f5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-component-data",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "React Component Data",
55
"main": "index.js",
66
"scripts": {

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const common = {
1616
]
1717
},
1818
externals: {
19-
react: 'React'
19+
'react': {
20+
'root': 'React',
21+
'commonjs2': 'react',
22+
'commonjs': 'react',
23+
'amd': 'react'
24+
}
2025
}
2126
};
2227

0 commit comments

Comments
 (0)