Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit f076b34

Browse files
authored
Merge pull request #16 from benox3/externals
Update `react` and `react-dom` externals
2 parents f555057 + 98d0e44 commit f076b34

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
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-pic",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "A responsive image loading component.",
55
"author": "Ben Budnevich",
66
"main": "dist/react-pic.js",

webpack.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@ const config = {
2121
]
2222
},
2323
externals: {
24-
'react': 'React',
25-
'react-dom': 'ReactDOM'
24+
'react': {
25+
root: 'React',
26+
amd: 'react',
27+
commonjs2: 'react',
28+
commonjs: 'react'
29+
},
30+
'react-dom': {
31+
root: 'ReactDOM',
32+
amd: 'react-dom',
33+
commonjs2: 'react-dom',
34+
commonjs: 'react-dom'
35+
}
2636
}
2737
};
2838

0 commit comments

Comments
 (0)