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

Function getSchema

lib/css/CssModulesPlugin.js:165–172  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

163 * @returns {{ oneOf: [{ $ref: string }], definitions: import("../../schemas/WebpackOptions.json")["definitions"] }} schema
164 */
165const getSchema = (name) => {
166 const { definitions } = require("../../schemas/WebpackOptions.json");
167
168 return {
169 definitions,
170 oneOf: [{ $ref: `#/definitions/${name}` }]
171 };
172};
173
174const parserValidationOptions = {
175 name: "Css Modules Plugin",

Callers 2

applyMethod · 0.70
validateMethod · 0.50

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected