@@ -315,9 +315,10 @@ describe("Validation", () => {
315315 expect ( msg ) . toMatchInlineSnapshot ( `
316316 "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
317317 - configuration.plugins[0] should be one of these:
318- object { apply, … } | function
318+ null | object { apply, … } | function
319319 -> Plugin of type object or instanceof Function.
320320 Details:
321+ * configuration.plugins[0] should be a null.
321322 * configuration.plugins[0] should be an object:
322323 object { apply, … }
323324 -> Plugin instance.
@@ -336,9 +337,10 @@ describe("Validation", () => {
336337 expect ( msg ) . toMatchInlineSnapshot ( `
337338 "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
338339 - configuration.plugins[0] should be one of these:
339- object { apply, … } | function
340+ null | object { apply, … } | function
340341 -> Plugin of type object or instanceof Function.
341342 Details:
343+ * configuration.plugins[0] should be a null.
342344 * configuration.plugins[0] should be an object:
343345 object { apply, … }
344346 -> Plugin instance.
@@ -357,9 +359,10 @@ describe("Validation", () => {
357359 expect ( msg ) . toMatchInlineSnapshot ( `
358360 "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
359361 - configuration.plugins[0] should be one of these:
360- object { apply, … } | function
362+ null | object { apply, … } | function
361363 -> Plugin of type object or instanceof Function.
362364 Details:
365+ * configuration.plugins[0] should be a null.
363366 * configuration.plugins[0] should be an object:
364367 object { apply, … }
365368 -> Plugin instance.
@@ -378,9 +381,10 @@ describe("Validation", () => {
378381 expect ( msg ) . toMatchInlineSnapshot ( `
379382 "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
380383 - configuration.plugins[0] should be one of these:
381- object { apply, … } | function
384+ null | object { apply, … } | function
382385 -> Plugin of type object or instanceof Function.
383386 Details:
387+ * configuration.plugins[0] should be a null.
384388 * configuration.plugins[0] should be an object:
385389 object { apply, … }
386390 -> Plugin instance.
0 commit comments