Skip to content

Commit 2563501

Browse files
committed
For UMD React build, export both core and React code alongside
1 parent 27bde0d commit 2563501

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

scripts/browser

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ WEBPACK_CMD=node_modules/.bin/webpack
44

55
mkdir -p dist
66

7-
$WEBPACK_CMD src/index.js dist/redux.js
8-
NODE_ENV=production $WEBPACK_CMD src/index.js dist/redux.min.js
7+
$WEBPACK_CMD src/umd.js dist/redux.js
8+
NODE_ENV=production $WEBPACK_CMD src/umd.js dist/redux.min.js
99

10-
$WEBPACK_CMD src/react.js dist/redux-react.js
11-
NODE_ENV=production $WEBPACK_CMD src/react.js dist/redux-react.min.js
10+
$WEBPACK_CMD src/umd-react.js dist/redux-react.js
11+
NODE_ENV=production $WEBPACK_CMD src/umd-react.js dist/redux-react.min.js

scripts/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
rm -rf lib
44
`npm bin`/babel src --out-dir lib
55

6-
mv lib/react-entry.js ./react.js
7-
mv lib/react-native-entry.js ./react-native.js
6+
mv lib/entry-react.js ./react.js
7+
mv lib/entry-react-native.js ./react-native.js
File renamed without changes.
File renamed without changes.

src/umd-react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './index';
2+
export * from './react';

src/umd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './index';

0 commit comments

Comments
 (0)