Skip to content

Commit

Permalink
fix(core): use concat in buildAllWorkspaceFiles to avoid Maximum call…
Browse files Browse the repository at this point in the history
… stack size exceeded (#18065)

(cherry picked from commit c364207)
  • Loading branch information
chentsulin authored and FrozenPandaz committed Jul 13, 2023
1 parent f8a4eaa commit eba235b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function buildAllWorkspaceFiles(
performance.mark('get-all-workspace-files:start');
let fileData = Object.values(projectFileMap).flat();

fileData.push(...globalFiles);
fileData = fileData.concat(globalFiles);
performance.mark('get-all-workspace-files:end');
performance.measure(
'get-all-workspace-files',
Expand Down

0 comments on commit eba235b

Please sign in to comment.