By removing the option preferPathResolver the interface to the signature got broken so that the webpack validator throws an error for unknown option
ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'preferPathResolver'. These properties are valid:
- validate.js:105 validate
- NormalModule.js:547 Object.getOptions
[<project>]/[webpack]/lib/NormalModule.js:547:19
Bug report
By removing the option
preferPathResolver
the interface to the signature got broken so that the webpack validator throws an error for unknown optionhttps://github.com/webpack-contrib/stylus-loader/commit/da566a6#r56565818
Actual Behavior
Webpack throws an error for unknown option if preferPathResolver is provided.
Expected Behavior
preferPathResolver should be an option.
How Do We Reproduce?
https://github.com/quasarframework/quasar/issues/10448