We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c166d7d commit d6d3aaaCopy full SHA for d6d3aaa
scripts/prod.js
@@ -12,14 +12,17 @@ let counter = 0;
12
const workers = workerFarm(
13
{
14
maxConcurrentWorkers: 3,
15
- maxRetries: 0
+ maxRetries: 0,
16
+ workerOptions: {
17
+ execArgv: ['--max-old-space-size=2048'],
18
+ },
19
},
- require.resolve('./build_locale.js')
20
+ require.resolve('./build_locale.js'),
21
);
22
-[true, false].forEach((react) => {
- locales.forEach((locale) => {
- workers(locale, react, (error) => {
23
+[true, false].forEach(react => {
24
+ locales.forEach(locale => {
25
+ workers(locale, react, error => {
26
if (++counter === bundleCount || error) {
27
// terminate after all locales have been processed
28
workerFarm.end(workers);
0 commit comments