Skip to content

Commit

Permalink
feat: output links and descriptions on errors (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv authored Oct 22, 2021
1 parent 3f420d2 commit b86cb8b
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 21 deletions.
22 changes: 16 additions & 6 deletions src/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
"definitions": {
"ImportItemString": {
"type": "string",
"minLength": 1
"minLength": 1,
"description": "Allows to use a string to describe an import.",
"link": "https://webpack.js.org/loaders/imports-loader/#string"
},
"ImportItemObject": {
"type": "object",
"additionalProperties": false,
"description": "Allows to use an object to describe an import.",
"link": "https://webpack.js.org/loaders/imports-loader/#object",
"properties": {
"syntax": {
"enum": [
Expand Down Expand Up @@ -47,15 +51,17 @@
}
},
"type": "object",
"description": "Options for imports-loader",
"properties": {
"type": {
"enum": ["module", "commonjs"]
"enum": ["module", "commonjs"],
"description": "Format of generated exports.",
"link": "https://github.com/webpack-contrib/imports-loader#type"
},
"imports": {
"anyOf": [
{
"type": "string",
"minLength": 1
"$ref": "#/definitions/ImportItemString"
},
{
"$ref": "#/definitions/ImportItem"
Expand Down Expand Up @@ -105,11 +111,15 @@
},
"required": ["thisArg"]
}
]
],
"description": "Closes the module code in a function with a given 'thisArg' and 'args'",
"link": "https://webpack.js.org/loaders/imports-loader/#wrapper"
},
"additionalCode": {
"type": "string",
"minLength": 1
"minLength": 1,
"description": "Adds custom code as a preamble before the module's code.",
"link": "https://webpack.js.org/loaders/imports-loader/#additionalcode"
}
},
"anyOf": [
Expand Down
Loading

0 comments on commit b86cb8b

Please sign in to comment.