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

feat: output links and description on errors #110

Merged
merged 2 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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