Skip to content

Commit 921ce4b

Browse files
committed
Release 2.3.3
1 parent 4406075 commit 921ce4b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
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-uploader",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"author": "Upload <hello@upload.io> (https://upload.io)",
55
"description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐",
66
"license": "MIT",

webpack.config.cdn.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@ module.exports = {
1616
output: {
1717
...config.output,
1818
filename: `v${majorVersion}.js`,
19-
libraryTarget: "window"
19+
libraryTarget: "umd"
2020
},
2121
// Important: causes all dependencies to be bundled into one JS file.
2222
externals: {
23-
"react": "React",
24-
"react-dom": "ReactDOM"
23+
"react": {
24+
root: "React",
25+
commonjs: "react",
26+
commonjs2: "react",
27+
amd: "react"
28+
},
29+
"react-dom": {
30+
root: "ReactDOM",
31+
commonjs: "react-dom",
32+
commonjs2: "react-dom",
33+
amd: "react-dom"
34+
}
2535
},
2636
resolve: {
2737
...config.resolve,

0 commit comments

Comments
 (0)