Skip to content

Commit b5d8a2f

Browse files
committed
fix: react16 17 need install even in dev mode
1 parent ce1680b commit b5d8a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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-source-debugger",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "A tool for quickly setting up the environment of debugging React source code.",
55
"main": "src/index.js",
66
"type": "module",

src/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async function prepareReact({ dir: reactDir, version: reactVersion, mode }) {
186186
}
187187

188188
// since react17 react16 production reguire "object-assign", we need to install deps
189-
if (['16', '17'].includes(matchedVersion.split('.')[0]) && mode === 'production') {
189+
if (['16', '17'].includes(matchedVersion.split('.')[0])) {
190190
hint.doing(`Installing react v${matchedVersion} deps.`);
191191
cd(reactDir);
192192
await spawnRunCommand(

0 commit comments

Comments
 (0)