Skip to content

Commit e785706

Browse files
committed
Group new CLI arguments with other developer assistance entries in getOptions return object
1 parent e5e61db commit e785706

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

development/webpack/test/cli.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ describe('./utils/cli.ts', () => {
1414
devtool: 'source-map',
1515
sentry: false,
1616
test: false,
17+
reactCompilerVerbose: false,
18+
reactCompilerDebug: 'none',
1719
zip: false,
1820
minify: false,
1921
browser: ['chrome'],
@@ -25,8 +27,6 @@ describe('./utils/cli.ts', () => {
2527
lavamoatDebug: false,
2628
generatePolicy: false,
2729
snow: false,
28-
reactCompilerVerbose: false,
29-
reactCompilerDebug: 'none',
3030
dryRun: false,
3131
stats: false,
3232
};

development/webpack/utils/cli.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,23 @@ function getOptions(
237237
group: toOrange('Developer assistance:'),
238238
type: 'boolean',
239239
},
240+
reactCompilerVerbose: {
241+
array: false,
242+
default: false,
243+
description:
244+
'Enables/disables React Compiler verbose mode and statistics',
245+
group: toOrange('Developer assistance:'),
246+
type: 'boolean',
247+
},
248+
reactCompilerDebug: {
249+
array: false,
250+
choices: ['all', 'critical', 'none'],
251+
default: 'none',
252+
description:
253+
'Sets React Compiler panic threshold that fails the build for all errors or critical errors only. If `none`, the build will not fail.',
254+
group: toOrange('Developer assistance:'),
255+
type: 'string',
256+
},
240257

241258
...prerequisites,
242259
zip: {
@@ -356,23 +373,6 @@ function getOptions(
356373
group: toOrange('Security:'),
357374
type: 'boolean',
358375
},
359-
reactCompilerVerbose: {
360-
array: false,
361-
default: false,
362-
description:
363-
'Enables/disables React Compiler verbose mode and statistics',
364-
group: toOrange('Developer assistance:'),
365-
type: 'boolean',
366-
},
367-
reactCompilerDebug: {
368-
array: false,
369-
choices: ['all', 'critical', 'none'],
370-
default: 'none',
371-
description:
372-
'Sets React Compiler panic threshold that fails the build for all errors or critical errors only. If `none`, the build will not fail.',
373-
group: toOrange('Developer assistance:'),
374-
type: 'string',
375-
},
376376

377377
dryRun: {
378378
array: false,

0 commit comments

Comments
 (0)