Skip to content

Commit 291fc3b

Browse files
committed
fix: add JSON schema for output.auxiliaryComment
1 parent cee956d commit 291fc3b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎schemas/webpackOptionsSchema.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,34 @@
132132
"additionalProperties": false,
133133
"description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
134134
"properties": {
135+
"auxiliaryComment": {
136+
"description": "Add a comment in the UMD wrapper.",
137+
"oneOf": [
138+
{
139+
"description": "Append the same comment above each import style.",
140+
"type": "string"
141+
},
142+
{
143+
"additionalProperties": false,
144+
"description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
145+
"properties": {
146+
"amd": {
147+
"type": "string"
148+
},
149+
"commonjs": {
150+
"type": "string"
151+
},
152+
"commonjs2": {
153+
"type": "string"
154+
},
155+
"root": {
156+
"type": "string"
157+
}
158+
},
159+
"type": "object"
160+
}
161+
]
162+
},
135163
"chunkFilename": {
136164
"description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
137165
"type": "string"

0 commit comments

Comments
 (0)