Skip to content

Commit ad5466b

Browse files
docs: say which tooling the file URL gate also needs
`precompile-schemas` hoists its own copy of the regexp the `absolutePath` keyword uses rather than taking it from `schema-utils`, so regenerating the pre-compiled schema against a newer `schema-utils` alone does not accept a file URL - `tooling` has to accept one as well.
1 parent dd523f9 commit ad5466b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/helpers/supportsFileUrlPaths.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
const webpackOptionsSchemaCheck = require("../../schemas/WebpackOptions.check");
44

55
// A file URL where the schema asks for an absolute path needs a `schema-utils`
6-
// that accepts one, and the pre-compiled schema regenerated against it.
6+
// that accepts one, and the pre-compiled schema regenerated against a `tooling`
7+
// that accepts one too - `precompile-schemas` hoists its own copy of the regexp
8+
// rather than taking it from `schema-utils`.
79
module.exports = function supportsFileUrlPaths() {
810
return Boolean(webpackOptionsSchemaCheck({ context: "file:///directory" }));
911
};

0 commit comments

Comments
 (0)