MCPcopy
hub / github.com/webpack/webpack / needValidate

Function needValidate

lib/webpack.js:142–154  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

140 * @returns {boolean} true when need to validate, otherwise false
141 */
142const needValidate = (options) => {
143 if (
144 options &&
145 (options.validate === false ||
146 (options.experiments &&
147 options.experiments.futureDefaults === true &&
148 (options.mode === "production" || !options.mode)))
149 ) {
150 return false;
151 }
152
153 return true;
154};
155
156/**
157 * Returns the compiler object.

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected