aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/webpack/schemas')
-rw-r--r--node_modules/webpack/schemas/webpackOptionsSchema.json183
1 files changed, 126 insertions, 57 deletions
diff --git a/node_modules/webpack/schemas/webpackOptionsSchema.json b/node_modules/webpack/schemas/webpackOptionsSchema.json
index 19ace1f99..1e5941d74 100644
--- a/node_modules/webpack/schemas/webpackOptionsSchema.json
+++ b/node_modules/webpack/schemas/webpackOptionsSchema.json
@@ -160,6 +160,9 @@
"instanceof": "RegExp"
},
{
+ "instanceof": "Function"
+ },
+ {
"items": {
"type": "string",
"absolutePath": true
@@ -221,6 +224,9 @@
},
"strictExportPresence": {
"type": "boolean"
+ },
+ "strictThisContextOnImports": {
+ "type": "boolean"
}
},
"type": "object"
@@ -369,6 +375,14 @@
"type": "string"
},
"type": "array"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "root": { "type": "string" },
+ "amd": { "type": "string" },
+ "commonjs": { "type": "string" }
+ }
}
],
"description": "If set, export the bundle as library. `output.library` is the name."
@@ -389,6 +403,16 @@
"jsonp"
]
},
+ "libraryExport": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "$ref": "#/definitions/common.arrayOfStringValues"
+ }
+ ]
+ },
"path": {
"description": "The output directory as **absolute path** (required).",
"type": "string",
@@ -459,6 +483,9 @@
"cachePredicate": {
"instanceof": "Function"
},
+ "cacheWithContext": {
+ "type": "boolean"
+ },
"descriptionFiles": {
"$ref": "#/definitions/common.arrayOfStringValues"
},
@@ -716,7 +743,7 @@
}
]
},
- "warning-filters-types": {
+ "filter-item-types": {
"anyOf": [
{
"instanceof": "RegExp"
@@ -728,6 +755,19 @@
"instanceof": "Function"
}
]
+ },
+ "filter-types": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/filter-item-types"
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/filter-item-types"
+ }
+ }
+ ]
}
},
"properties": {
@@ -798,59 +838,73 @@
},
"node": {
"description": "Include polyfills or mocks for various node stuff.",
- "additionalProperties": {
- "enum": [
- false,
- true,
- "mock",
- "empty"
- ]
- },
- "properties": {
- "Buffer": {
- "enum": [
- false,
- true,
- "mock"
- ]
- },
- "__dirname": {
- "enum": [
- false,
- true,
- "mock"
- ]
- },
- "__filename": {
- "enum": [
- false,
- true,
- "mock"
- ]
- },
- "console": {
+ "anyOf": [
+ {
"enum": [
- false,
- true,
- "mock"
+ false
]
},
- "global": {
- "type": "boolean"
- },
- "process": {
- "enum": [
- false,
- true,
- "mock"
- ]
+ {
+ "additionalProperties": {
+ "enum": [
+ false,
+ true,
+ "mock",
+ "empty"
+ ]
+ },
+ "properties": {
+ "Buffer": {
+ "enum": [
+ false,
+ true,
+ "mock"
+ ]
+ },
+ "__dirname": {
+ "enum": [
+ false,
+ true,
+ "mock"
+ ]
+ },
+ "__filename": {
+ "enum": [
+ false,
+ true,
+ "mock"
+ ]
+ },
+ "console": {
+ "enum": [
+ false,
+ true,
+ "mock"
+ ]
+ },
+ "global": {
+ "type": "boolean"
+ },
+ "process": {
+ "enum": [
+ false,
+ true,
+ "mock"
+ ]
+ }
+ },
+ "type": "object"
}
- },
- "type": "object"
+ ]
},
"output": {
"$ref": "#/definitions/output"
},
+ "parallelism": {
+ "description": "The number of parallel processed modules in the compilation.",
+ "minimum": 1,
+ "type": "number"
+ },
"performance": {
"description": "Configuration for web performance recommendations.",
"anyOf": [
@@ -973,17 +1027,19 @@
},
"warningsFilter": {
"description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/definitions/warning-filters-types"
- }
- },
- {
- "$ref": "#/definitions/warning-filters-types"
- }
- ]
+ "$ref": "#/definitions/filter-types"
+ },
+ "excludeAssets": {
+ "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
+ "$ref": "#/definitions/filter-types"
+ },
+ "excludeModules": {
+ "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
+ "$ref": "#/definitions/filter-types"
+ },
+ "exclude": {
+ "description": "Please use excludeModules instead.",
+ "$ref": "#/definitions/filter-types"
},
"errorDetails": {
"type": "boolean",
@@ -1008,6 +1064,18 @@
"assetsSort": {
"type": "string",
"description": "sort the assets by that field"
+ },
+ "providedExports": {
+ "type": "boolean",
+ "description": "show exports provided by modules"
+ },
+ "usedExports": {
+ "type": "boolean",
+ "description": "show exports used by modules"
+ },
+ "optimizationBailout": {
+ "type": "boolean",
+ "description": "show reasons why optimization bailed out for modules"
}
}
},
@@ -1020,6 +1088,7 @@
"errors-only",
"minimal",
"normal",
+ "detailed",
"verbose"
]
}