diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index 29f6fd16a39..39445e48478 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -1821,7 +1821,7 @@ export interface Output { */ export interface Environment { /** - * The environment supports arrow functions ('() => { ... }'). + * The environment supports arrow functions. */ arrowFunction?: boolean; /** @@ -1833,7 +1833,7 @@ export interface Environment { */ const?: boolean; /** - * The environment supports destructuring ('{ a, b } = obj'). + * The environment supports destructuring. */ destructuring?: boolean; /** @@ -1841,7 +1841,7 @@ export interface Environment { */ dynamicImport?: boolean; /** - * The environment supports 'for of' iteration ('for (const x of array) { ... }'). + * The environment supports 'for of' iteration. */ forOf?: boolean; /** diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index 67037e09931..b75104ca31b 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -406,7 +406,7 @@ "additionalProperties": false, "properties": { "arrowFunction": { - "description": "The environment supports arrow functions ('() => { ... }').", + "description": "The environment supports arrow functions.", "type": "boolean" }, "bigIntLiteral": { @@ -418,7 +418,7 @@ "type": "boolean" }, "destructuring": { - "description": "The environment supports destructuring ('{ a, b } = obj').", + "description": "The environment supports destructuring.", "type": "boolean" }, "dynamicImport": { @@ -426,7 +426,7 @@ "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": { diff --git a/test/__snapshots__/Cli.test.js.snap b/test/__snapshots__/Cli.test.js.snap index ea32aa56ae9..449142b2f26 100644 --- a/test/__snapshots__/Cli.test.js.snap +++ b/test/__snapshots__/Cli.test.js.snap @@ -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", }, @@ -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", }, @@ -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", }, diff --git a/types.d.ts b/types.d.ts index f5a3ec3a79d..b3876e058f5 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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; @@ -2687,7 +2687,7 @@ declare interface Environment { const?: boolean; /** - * The environment supports destructuring ('{ a, b } = obj'). + * The environment supports destructuring. */ destructuring?: boolean; @@ -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;