Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
#240 introduces validation which causes Promise based configurations to pass due to instanceof Function being true.
What is the expected behavior?
At the point the validation runs, the configuration can never be just a Function, it's expected to be an object, an array of objects, or a Promise.
If this is a feature request, what is motivation or use case for changing the behavior?
Provide stricter validation schema.
Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.
The main concern with adding the above is that it requires webpack/webpack#6430.
The ajv-keywords package does not support "instanceof": "Promise" in versions <3.1.0, which has a peerDependency of ajv@^6.0.0.
An alternative to updating the package versions would be to add Promise as a "custom" constructor (outlined here), but this would still have to be implemented in webpack/webpack based ajv being configured in core, and not directly exposed.
Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
#240 introduces validation which causes
Promisebased configurations to pass due toinstanceof Functionbeingtrue.What is the expected behavior?
At the point the validation runs, the configuration can never be just a
Function, it's expected to be an object, an array of objects, or aPromise.If this is a feature request, what is motivation or use case for changing the behavior?
Provide stricter validation schema.
Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.
The main concern with adding the above is that it requires webpack/webpack#6430.
The
ajv-keywordspackage does not support"instanceof": "Promise"in versions<3.1.0, which has apeerDependencyofajv@^6.0.0.An alternative to updating the package versions would be to add
Promiseas a "custom" constructor (outlined here), but this would still have to be implemented inwebpack/webpackbasedajvbeing configured in core, and not directly exposed.