(options)
| 140 | * @returns {boolean} true when need to validate, otherwise false |
| 141 | */ |
| 142 | const 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. |