@@ -453,18 +453,18 @@ describe("Validation", () => {
453453 } ,
454454 msg =>
455455 expect ( msg ) . toMatchInlineSnapshot ( `
456- "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
457- - configuration.optimization.splitChunks.cacheGroups should not be object { test, … }.
458- -> Using the cacheGroup shorthand syntax with a cache group named 'test' is a potential config error
459- Did you intent to define a cache group with a test instead?
460- cacheGroups: {
461- <name>: {
462- test: ...
463- }
464- }.
465- object { <key>: false | RegExp | string | function | object { automaticNameDelimiter?, chunks?, enforce?, enforceSizeThreshold?, filename?, idHint?, layer?, maxAsyncRequests?, maxAsyncSize?, maxInitialRequests?, maxInitialSize?, maxSize?, minChunks?, minRemainingSize?, minSize?, minSizeReduction?, name?, priority?, reuseExistingChunk?, test?, type?, usedExports? } }
466- -> Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors')."
467- ` )
456+ "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
457+ - configuration.optimization.splitChunks.cacheGroups should not be object { test, … }.
458+ -> Using the cacheGroup shorthand syntax with a cache group named 'test' is a potential config error
459+ Did you intent to define a cache group with a test instead?
460+ cacheGroups: {
461+ <name>: {
462+ test: ...
463+ }
464+ }.
465+ object { <key>: false | RegExp | string | function | object { automaticNameDelimiter?, chunks?, enforce?, enforceSizeThreshold?, filename?, idHint?, layer?, maxAsyncRequests?, maxAsyncSize?, maxInitialRequests?, maxInitialSize?, maxSize?, minChunks?, minRemainingSize?, minSize?, minSizeReduction?, name?, priority?, reuseExistingChunk?, test?, type?, usedExports? } }
466+ -> Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors')."
467+ `)
468468 ) ;
469469
470470 createTestCase (
@@ -497,7 +497,7 @@ describe("Validation", () => {
497497 expect ( msg ) . toMatchInlineSnapshot ( `
498498 "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
499499 - configuration.output has an unknown property 'ecmaVersion'. These properties are valid:
500- object { assetModuleFilename?, auxiliaryComment?, charset?, chunkFilename?, chunkFormat?, chunkLoadTimeout?, chunkLoading?, chunkLoadingGlobal?, clean?, compareBeforeEmit?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolModuleFilenameTemplate?, devtoolNamespace?, enabledChunkLoadingTypes?, enabledLibraryTypes?, enabledWasmLoadingTypes?, environment?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateGlobal?, hotUpdateMainFilename?, iife?, importFunctionName?, importMetaName?, library?, libraryExport?, libraryTarget?, module?, path?, pathinfo?, publicPath?, scriptType?, sourceMapFilename?, sourcePrefix?, strictModuleErrorHandling?, strictModuleExceptionHandling?, trustedTypes?, umdNamedDefine?, uniqueName?, wasmLoading?, webassemblyModuleFilename?, workerChunkLoading?, workerWasmLoading? }
500+ object { assetModuleFilename?, auxiliaryComment?, charset?, chunkFilename?, chunkFormat?, chunkLoadTimeout?, chunkLoading?, chunkLoadingGlobal?, clean?, compareBeforeEmit?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolModuleFilenameTemplate?, devtoolNamespace?, enabledChunkLoadingTypes?, enabledLibraryTypes?, enabledWasmLoadingTypes?, environment?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateGlobal?, hotUpdateMainFilename?, iife?, importFunctionName?, importMetaName?, library?, libraryExport?, libraryTarget?, module?, path?, pathinfo?, publicPath?, scriptType?, sourceMapFilename?, sourcePrefix?, strictModuleErrorHandling?, strictModuleExceptionHandling?, trustedTypes?, umdNamedDefine?, uniqueName?, wasmLoading?, webassemblyModuleFilename?, workerChunkLoading?, workerCrossOriginLoading?, workerWasmLoading? }
501501 -> Options affecting the output of the compilation. \`output\` options tell webpack how to write the compiled files to disk.
502502 Did you mean output.environment (output.ecmaVersion was a temporary configuration option during webpack 5 beta)?"
503503 ` )
@@ -661,11 +661,11 @@ describe("Validation", () => {
661661 } ,
662662 msg =>
663663 expect ( msg ) . toMatchInlineSnapshot ( `
664- "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
665- - configuration.optimization.splitChunks has an unknown property 'automaticNamePrefix'. These properties are valid:
666- object { automaticNameDelimiter?, cacheGroups?, chunks?, defaultSizeTypes?, enforceSizeThreshold?, fallbackCacheGroup?, filename?, hidePathInfo?, maxAsyncRequests?, maxAsyncSize?, maxInitialRequests?, maxInitialSize?, maxSize?, minChunks?, minRemainingSize?, minSize?, minSizeReduction?, name?, usedExports? }
667- -> Options object for splitting chunks into smaller chunks."
668- ` )
664+ "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
665+ - configuration.optimization.splitChunks has an unknown property 'automaticNamePrefix'. These properties are valid:
666+ object { automaticNameDelimiter?, cacheGroups?, chunks?, defaultSizeTypes?, enforceSizeThreshold?, fallbackCacheGroup?, filename?, hidePathInfo?, maxAsyncRequests?, maxAsyncSize?, maxInitialRequests?, maxInitialSize?, maxSize?, minChunks?, minRemainingSize?, minSize?, minSizeReduction?, name?, usedExports? }
667+ -> Options object for splitting chunks into smaller chunks."
668+ `)
669669 ) ;
670670 } ) ;
671671} ) ;
0 commit comments