Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update some descriptions for CLI help output #11472

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions declarations/WebpackOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ export interface Output {
*/
export interface Environment {
/**
* The environment supports arrow functions ('() => { ... }').
* The environment supports arrow functions.
*/
arrowFunction?: boolean;
/**
Expand All @@ -1833,15 +1833,15 @@ export interface Environment {
*/
const?: boolean;
/**
* The environment supports destructuring ('{ a, b } = obj').
* The environment supports destructuring.
*/
destructuring?: boolean;
/**
* The environment supports an async import() function to import EcmaScript modules.
*/
dynamicImport?: boolean;
/**
* The environment supports 'for of' iteration ('for (const x of array) { ... }').
* The environment supports 'for of' iteration.
*/
forOf?: boolean;
/**
Expand Down
6 changes: 3 additions & 3 deletions schemas/WebpackOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
"additionalProperties": false,
"properties": {
"arrowFunction": {
"description": "The environment supports arrow functions ('() => { ... }').",
"description": "The environment supports arrow functions.",
"type": "boolean"
},
"bigIntLiteral": {
Expand All @@ -418,15 +418,15 @@
"type": "boolean"
},
"destructuring": {
"description": "The environment supports destructuring ('{ a, b } = obj').",
"description": "The environment supports destructuring.",
"type": "boolean"
},
"dynamicImport": {
"description": "The environment supports an async import() function to import EcmaScript modules.",
"type": "boolean"
},
"forOf": {
"description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
"description": "The environment supports 'for of' iteration.",
"type": "boolean"
},
"module": {
Expand Down
12 changes: 6 additions & 6 deletions test/__snapshots__/Cli.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2214,13 +2214,13 @@ Object {
"output-environment-arrow-function": Object {
"configs": Array [
Object {
"description": "The environment supports arrow functions ('() => { ... }').",
"description": "The environment supports arrow functions.",
"multiple": false,
"path": "output.environment.arrowFunction",
"type": "boolean",
},
],
"description": "The environment supports arrow functions ('() => { ... }').",
"description": "The environment supports arrow functions.",
"multiple": false,
"simpleType": "boolean",
},
Expand Down Expand Up @@ -2253,13 +2253,13 @@ Object {
"output-environment-destructuring": Object {
"configs": Array [
Object {
"description": "The environment supports destructuring ('{ a, b } = obj').",
"description": "The environment supports destructuring.",
"multiple": false,
"path": "output.environment.destructuring",
"type": "boolean",
},
],
"description": "The environment supports destructuring ('{ a, b } = obj').",
"description": "The environment supports destructuring.",
"multiple": false,
"simpleType": "boolean",
},
Expand All @@ -2279,13 +2279,13 @@ Object {
"output-environment-for-of": Object {
"configs": Array [
Object {
"description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
"description": "The environment supports 'for of' iteration.",
"multiple": false,
"path": "output.environment.forOf",
"type": "boolean",
},
],
"description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
"description": "The environment supports 'for of' iteration.",
"multiple": false,
"simpleType": "boolean",
},
Expand Down
6 changes: 3 additions & 3 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2672,7 +2672,7 @@ declare abstract class Entrypoint extends ChunkGroup {
*/
declare interface Environment {
/**
* The environment supports arrow functions ('() => { ... }').
* The environment supports arrow functions.
*/
arrowFunction?: boolean;

Expand All @@ -2687,7 +2687,7 @@ declare interface Environment {
const?: boolean;

/**
* The environment supports destructuring ('{ a, b } = obj').
* The environment supports destructuring.
*/
destructuring?: boolean;

Expand All @@ -2697,7 +2697,7 @@ declare interface Environment {
dynamicImport?: boolean;

/**
* The environment supports 'for of' iteration ('for (const x of array) { ... }').
* The environment supports 'for of' iteration.
*/
forOf?: boolean;

Expand Down