Skip to content

Commit

Permalink
fix: react16 17 need install even in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
avennn committed May 30, 2023
1 parent ce1680b commit b5d8a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-source-debugger",
"version": "1.1.3",
"version": "1.1.4",
"description": "A tool for quickly setting up the environment of debugging React source code.",
"main": "src/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async function prepareReact({ dir: reactDir, version: reactVersion, mode }) {
}

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

0 comments on commit b5d8a2f

Please sign in to comment.