MCPcopy
hub / github.com/webpack/webpack / getSchema

Function getSchema

lib/asset/AssetModulesPlugin.js:35–44  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

33 * @returns {Schema} definition
34 */
35const getSchema = (name) => {
36 const { definitions } =
37 /** @type {EXPECTED_ANY} */
38 (require("../../schemas/WebpackOptions.json"));
39
40 return {
41 definitions,
42 oneOf: [{ $ref: `#/definitions/${name}` }]
43 };
44};
45
46const generatorValidationOptions = {
47 name: "Asset Modules Plugin",

Callers 1

applyMethod · 0.70

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected