diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index 8de86d72a..bba48c5a2 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -466,6 +466,10 @@ export type Iife = boolean; * The name of the native import() function (can be exchanged for a polyfill). */ export type ImportFunctionName = string; +/** + * The name of the native import.meta object (can be exchanged for a polyfill). + */ +export type ImportMetaName = string; /** * Make the output files a library, exporting the exports of the entry point. */ @@ -486,6 +490,7 @@ export type Pathinfo = boolean; * The `publicPath` specifies the public URL address of the output files when referenced in a browser. */ export type PublicPath = + | "auto" | string | (( pathData: import("../lib/Compilation").PathData, @@ -1759,6 +1764,10 @@ export interface Output { * The name of the native import() function (can be exchanged for a polyfill). */ importFunctionName?: ImportFunctionName; + /** + * The name of the native import.meta object (can be exchanged for a polyfill). + */ + importMetaName?: ImportMetaName; /** * Make the output files a library, exporting the exports of the entry point. */ @@ -2426,6 +2435,10 @@ export interface OutputNormalized { * The name of the native import() function (can be exchanged for a polyfill). */ importFunctionName?: ImportFunctionName; + /** + * The name of the native import.meta object (can be exchanged for a polyfill). + */ + importMetaName?: ImportMetaName; /** * Options for library. */ diff --git a/lib/RuntimePlugin.js b/lib/RuntimePlugin.js index acbd63034..96cd16e06 100644 --- a/lib/RuntimePlugin.js +++ b/lib/RuntimePlugin.js @@ -8,6 +8,7 @@ const RuntimeGlobals = require("./RuntimeGlobals"); const RuntimeRequirementsDependency = require("./dependencies/RuntimeRequirementsDependency"); const JavascriptModulesPlugin = require("./javascript/JavascriptModulesPlugin"); +const AutoPublicPathRuntimeModule = require("./runtime/AutoPublicPathRuntimeModule"); const CompatGetDefaultExportRuntimeModule = require("./runtime/CompatGetDefaultExportRuntimeModule"); const CompatRuntimeModule = require("./runtime/CompatRuntimeModule"); const CreateFakeNamespaceObjectRuntimeModule = require("./runtime/CreateFakeNamespaceObjectRuntimeModule"); @@ -157,16 +158,26 @@ class RuntimePlugin { }); compilation.hooks.runtimeRequirementInTree .for(RuntimeGlobals.publicPath) - .tap("RuntimePlugin", chunk => { - const module = new PublicPathRuntimeModule(); - const publicPath = compilation.outputOptions.publicPath; - if ( - typeof publicPath !== "string" || - /\[(full)?hash\]/.test(publicPath) - ) { - module.fullHash = true; + .tap("RuntimePlugin", (chunk, set) => { + const { outputOptions } = compilation; + const { publicPath, scriptType } = outputOptions; + + if (publicPath === "auto") { + const module = new AutoPublicPathRuntimeModule(); + if (scriptType !== "module") set.add(RuntimeGlobals.global); + compilation.addRuntimeModule(chunk, module); + } else { + const module = new PublicPathRuntimeModule(); + + if ( + typeof publicPath !== "string" || + /\[(full)?hash\]/.test(publicPath) + ) { + module.fullHash = true; + } + + compilation.addRuntimeModule(chunk, module); } - compilation.addRuntimeModule(chunk, module); return true; }); compilation.hooks.runtimeRequirementInTree diff --git a/lib/RuntimeTemplate.js b/lib/RuntimeTemplate.js index aa789d620..52d67872f 100644 --- a/lib/RuntimeTemplate.js +++ b/lib/RuntimeTemplate.js @@ -91,6 +91,11 @@ class RuntimeTemplate { return this.outputOptions.environment.module; } + supportTemplateLiteral() { + // TODO + return false; + } + returningFunction(returnValue, args = "") { return this.supportsArrowFunction() ? `(${args}) => ${returnValue}` diff --git a/lib/config/defaults.js b/lib/config/defaults.js index 07a08d3f4..7fd70f2e0 100644 --- a/lib/config/defaults.js +++ b/lib/config/defaults.js @@ -537,6 +537,7 @@ const applyOutputDefaults = ( F(output, "module", () => !!outputModule); F(output, "iife", () => !output.module); D(output, "importFunctionName", "import"); + D(output, "importMetaName", "import.meta"); F(output, "chunkFilename", () => { const filename = output.filename; if (typeof filename !== "function") { @@ -553,7 +554,6 @@ const applyOutputDefaults = ( }); D(output, "assetModuleFilename", "[hash][ext][query]"); D(output, "webassemblyModuleFilename", "[hash].module.wasm"); - D(output, "publicPath", ""); D(output, "compareBeforeEmit", true); D(output, "charset", true); F(output, "hotUpdateGlobal", () => @@ -639,6 +639,13 @@ const applyOutputDefaults = ( D(output, "hotUpdateMainFilename", "[fullhash].hot-update.json"); D(output, "crossOriginLoading", false); F(output, "scriptType", () => (output.module ? "module" : false)); + D( + output, + "publicPath", + (tp && (tp.document || tp.importScripts)) || output.scriptType === "module" + ? "auto" + : "" + ); D(output, "chunkLoadTimeout", 120000); D(output, "hashFunction", "md4"); D(output, "hashDigest", "hex"); diff --git a/lib/config/normalization.js b/lib/config/normalization.js index a0bf9fa42..d10fb5095 100644 --- a/lib/config/normalization.js +++ b/lib/config/normalization.js @@ -252,6 +252,7 @@ const getNormalizedWebpackOptions = config => { hotUpdateMainFilename: output.hotUpdateMainFilename, iife: output.iife, importFunctionName: output.importFunctionName, + importMetaName: output.importMetaName, scriptType: output.scriptType, library: libraryBase && { type: diff --git a/lib/runtime/AutoPublicPathRuntimeModule.js b/lib/runtime/AutoPublicPathRuntimeModule.js new file mode 100644 index 000000000..492c4233d --- /dev/null +++ b/lib/runtime/AutoPublicPathRuntimeModule.js @@ -0,0 +1,68 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php +*/ + +"use strict"; + +const RuntimeGlobals = require("../RuntimeGlobals"); +const RuntimeModule = require("../RuntimeModule"); +const Template = require("../Template"); +const JavascriptModulesPlugin = require("../javascript/JavascriptModulesPlugin"); +const { getUndoPath } = require("../util/identifier"); + +class AutoPublicPathRuntimeModule extends RuntimeModule { + constructor() { + super("publicPath", 5); + } + + /** + * @returns {string} runtime code + */ + generate() { + const { compilation } = this; + const { scriptType, importMetaName } = compilation.outputOptions; + const chunkName = compilation.getPath( + JavascriptModulesPlugin.getChunkFilenameTemplate( + this.chunk, + compilation.outputOptions + ), + { + chunk: this.chunk, + contentHashType: "javascript" + } + ); + const undoPath = getUndoPath(chunkName, false); + return Template.asString([ + "var scriptUrl;", + scriptType === "module" + ? `if (typeof ${importMetaName}.url === "string") scriptUrl = ${importMetaName}.url` + : Template.asString([ + `if (${RuntimeGlobals.global}.importScripts) scriptUrl = ${RuntimeGlobals.global}.location + "";`, + `var document = ${RuntimeGlobals.global}.document;`, + "if (!scriptUrl && document) {", + Template.indent([ + `if (document.currentScript)`, + Template.indent(`scriptUrl = document.currentScript.src`), + "if (!scriptUrl) {", + Template.indent([ + 'var scripts = document.getElementsByTagName("script");', + "if(scripts.length) scriptUrl = scripts[scripts.length - 1].src" + ]), + "}" + ]), + "}" + ]), + "// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration", + '// or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.', + 'if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");', + 'scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\\?.*$/, "").replace(/\\/[^\\/]+$/, "/");', + !undoPath + ? `${RuntimeGlobals.publicPath} = scriptUrl;` + : `${RuntimeGlobals.publicPath} = scriptUrl + ${JSON.stringify( + undoPath + )};` + ]); + } +} + +module.exports = AutoPublicPathRuntimeModule; diff --git a/lib/runtime/PublicPathRuntimeModule.js b/lib/runtime/PublicPathRuntimeModule.js index dc40c52cd..ad4214725 100644 --- a/lib/runtime/PublicPathRuntimeModule.js +++ b/lib/runtime/PublicPathRuntimeModule.js @@ -7,24 +7,22 @@ const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); -/** @typedef {import("../Compilation")} Compilation */ - class PublicPathRuntimeModule extends RuntimeModule { constructor() { - super("publicPath"); + super("publicPath", 5); } /** * @returns {string} runtime code */ generate() { + const { compilation } = this; + const { publicPath } = compilation.outputOptions; + return `${RuntimeGlobals.publicPath} = ${JSON.stringify( - this.compilation.getPath( - this.compilation.outputOptions.publicPath || "", - { - hash: this.compilation.hash || "XXXX" - } - ) + this.compilation.getPath(publicPath || "", { + hash: this.compilation.hash || "XXXX" + }) )};`; } } diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index 46a6ef79e..31066eaa2 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -780,6 +780,10 @@ "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, + "ImportMetaName": { + "description": "The name of the native import.meta object (can be exchanged for a polyfill).", + "type": "string" + }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", @@ -1868,6 +1872,9 @@ "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, + "importMetaName": { + "$ref": "#/definitions/ImportMetaName" + }, "library": { "$ref": "#/definitions/Library" }, @@ -2032,6 +2039,9 @@ "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, + "importMetaName": { + "$ref": "#/definitions/ImportMetaName" + }, "library": { "$ref": "#/definitions/LibraryOptions" }, @@ -2147,6 +2157,9 @@ "PublicPath": { "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.", "anyOf": [ + { + "enum": ["auto"] + }, { "type": "string" }, diff --git a/test/ConfigTestCases.template.js b/test/ConfigTestCases.template.js index 39aaadf23..efd8b6eed 100644 --- a/test/ConfigTestCases.template.js +++ b/test/ConfigTestCases.template.js @@ -9,6 +9,7 @@ const checkArrayExpectation = require("./checkArrayExpectation"); const createLazyTestEnv = require("./helpers/createLazyTestEnv"); const deprecationTracking = require("./helpers/deprecationTracking"); const FakeDocument = require("./helpers/FakeDocument"); +const CurrentScript = require("./helpers/CurrentScript"); const webpack = require(".."); const prepareOptions = require("./helpers/prepareOptions"); @@ -222,12 +223,13 @@ const describeCases = config => { const bundlePath = testConfig.findBundle(i, optionsArr[i]); if (bundlePath) { filesCount++; + const document = new FakeDocument(); const globalContext = { console: console, expect: expect, setTimeout: setTimeout, clearTimeout: clearTimeout, - document: new FakeDocument(), + document, location: { href: "https://test.cases/path/index.html", origin: "https://test.cases", @@ -243,6 +245,7 @@ const describeCases = config => { if (Array.isArray(module) || /^\.\.?\//.test(module)) { let content; let p; + let subPath = ""; if (Array.isArray(module)) { p = path.join(currentDirectory, ".array-require.js"); content = `module.exports = (${module @@ -253,6 +256,26 @@ const describeCases = config => { } else { p = path.join(currentDirectory, module); content = fs.readFileSync(p, "utf-8"); + const lastSlash = module.lastIndexOf("/"); + let firstSlash = module.indexOf("/"); + + if (lastSlash !== -1 && firstSlash !== lastSlash) { + if (firstSlash !== -1) { + let next = module.indexOf("/", firstSlash + 1); + let dir = module.slice(firstSlash + 1, next); + + while (dir === ".") { + firstSlash = next; + next = module.indexOf("/", firstSlash + 1); + dir = module.slice(firstSlash + 1, next); + } + } + + subPath = module.slice( + firstSlash + 1, + lastSlash + 1 + ); + } } if (p in requireCache) { return requireCache[p].exports; @@ -262,6 +285,9 @@ const describeCases = config => { }; requireCache[p] = m; let runInNewContext = false; + let oldCurrentScript = document.currentScript; + document.currentScript = new CurrentScript(subPath); + const moduleScope = { require: _require.bind( null, @@ -357,6 +383,10 @@ const describeCases = config => { ? vm.runInNewContext(code, globalContext, p) : vm.runInThisContext(code, p); fn.call(m.exports, moduleScope); + + //restore state + document.currentScript = oldCurrentScript; + return m.exports; } else if ( testConfig.modules && diff --git a/test/Defaults.unittest.js b/test/Defaults.unittest.js index 6c01ae1a7..ef8e0db41 100644 --- a/test/Defaults.unittest.js +++ b/test/Defaults.unittest.js @@ -303,11 +303,12 @@ describe("Defaults", () => { "hotUpdateMainFilename": "[fullhash].hot-update.json", "iife": true, "importFunctionName": "import", + "importMetaName": "import.meta", "library": undefined, "module": false, "path": "/dist", "pathinfo": false, - "publicPath": "", + "publicPath": "auto", "scriptType": false, "sourceMapFilename": "[file].map[query]", "sourcePrefix": undefined, @@ -972,6 +973,9 @@ describe("Defaults", () => { - "globalObject": "self", + "globalObject": "global", @@ ... @@ + - "publicPath": "auto", + + "publicPath": "", + @@ ... @@ - "wasmLoading": "fetch", + "wasmLoading": "async-node", @@ ... @@ @@ -1096,6 +1100,9 @@ describe("Defaults", () => { - "globalObject": "self", + "globalObject": "global", @@ ... @@ + - "publicPath": "auto", + + "publicPath": "", + @@ ... @@ - "wasmLoading": "fetch", + "wasmLoading": "async-node", @@ ... @@ @@ -1202,6 +1209,9 @@ describe("Defaults", () => { - "globalObject": "self", + "globalObject": "global", @@ ... @@ + - "publicPath": "auto", + + "publicPath": "", + @@ ... @@ - "wasmLoading": "fetch", + "wasmLoading": "async-node", @@ ... @@ diff --git a/test/HotTestCases.template.js b/test/HotTestCases.template.js index 7116ba661..1095bea0f 100644 --- a/test/HotTestCases.template.js +++ b/test/HotTestCases.template.js @@ -66,6 +66,8 @@ const describeCases = config => { options.output.chunkFilename = "[name].chunk.[fullhash].js"; if (options.output.pathinfo === undefined) options.output.pathinfo = true; + if (options.output.publicPath === undefined) + options.output.publicPath = ""; if (options.output.library === undefined) options.output.library = { type: "commonjs2" }; if (!options.optimization) options.optimization = {}; diff --git a/test/Stats.test.js b/test/Stats.test.js index 36de69a15..290a243b4 100644 --- a/test/Stats.test.js +++ b/test/Stats.test.js @@ -173,10 +173,10 @@ describe("Stats", () => { "assets": Array [ Object { "name": "entryB.js", - "size": 2185, + "size": 2698, }, ], - "assetsSize": 2185, + "assetsSize": 2698, "auxiliaryAssets": undefined, "auxiliaryAssetsSize": 0, "childAssets": undefined, @@ -220,10 +220,10 @@ describe("Stats", () => { "filteredRelated": undefined, "info": Object { "minimized": true, - "size": 2185, + "size": 2698, }, "name": "entryB.js", - "size": 2185, + "size": 2698, "type": "asset", }, Object { diff --git a/test/Validation.test.js b/test/Validation.test.js index a67fcfbe9..7927686b9 100644 --- a/test/Validation.test.js +++ b/test/Validation.test.js @@ -496,7 +496,7 @@ describe("Validation", () => { expect(msg).toMatchInlineSnapshot(` "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration.output has an unknown property 'ecmaVersion'. These properties are valid: - object { assetModuleFilename?, auxiliaryComment?, charset?, chunkFilename?, chunkFormat?, chunkLoadTimeout?, chunkLoading?, chunkLoadingGlobal?, compareBeforeEmit?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolModuleFilenameTemplate?, devtoolNamespace?, enabledChunkLoadingTypes?, enabledLibraryTypes?, enabledWasmLoadingTypes?, environment?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateGlobal?, hotUpdateMainFilename?, iife?, importFunctionName?, library?, libraryExport?, libraryTarget?, module?, path?, pathinfo?, publicPath?, scriptType?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine?, uniqueName?, wasmLoading?, webassemblyModuleFilename?, workerChunkLoading?, workerWasmLoading? } + object { assetModuleFilename?, auxiliaryComment?, charset?, chunkFilename?, chunkFormat?, chunkLoadTimeout?, chunkLoading?, chunkLoadingGlobal?, 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?, strictModuleExceptionHandling?, umdNamedDefine?, uniqueName?, wasmLoading?, webassemblyModuleFilename?, workerChunkLoading?, workerWasmLoading? } -> Options affecting the output of the compilation. \`output\` options tell webpack how to write the compiled files to disk. Did you mean output.environment?" `) diff --git a/test/__snapshots__/Cli.test.js.snap b/test/__snapshots__/Cli.test.js.snap index b810c36ce..653b7b08e 100644 --- a/test/__snapshots__/Cli.test.js.snap +++ b/test/__snapshots__/Cli.test.js.snap @@ -2445,6 +2445,19 @@ Object { "multiple": false, "simpleType": "string", }, + "output-import-meta-name": Object { + "configs": Array [ + Object { + "description": "The name of the native import.meta object (can be exchanged for a polyfill).", + "multiple": false, + "path": "output.importMetaName", + "type": "string", + }, + ], + "description": "The name of the native import.meta object (can be exchanged for a polyfill).", + "multiple": false, + "simpleType": "string", + }, "output-library": Object { "configs": Array [ Object { @@ -2783,6 +2796,15 @@ Object { }, "output-public-path": Object { "configs": Array [ + Object { + "description": "The \`publicPath\` specifies the public URL address of the output files when referenced in a browser.", + "multiple": false, + "path": "output.publicPath", + "type": "enum", + "values": Array [ + "auto", + ], + }, Object { "description": "The \`publicPath\` specifies the public URL address of the output files when referenced in a browser.", "multiple": false, diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index abb138bb5..94cfc543b 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -2,15 +2,15 @@ exports[`StatsTestCases should print correct stats for aggressive-splitting-entry 1`] = ` "fitting: - PublicPath: (none) - asset fitting-b173671f478b4f9cb241.js 14.1 KiB [emitted] [immutable] + PublicPath: auto + asset fitting-3aa6a54e85f89651e5ae.js 15.4 KiB [emitted] [immutable] asset fitting-0ef410f237b15bfe113d.js 1.9 KiB [emitted] [immutable] asset fitting-256876500cd1e11ec846.js 1.9 KiB [emitted] [immutable] asset fitting-e34e676a6c178b5d493b.js 1.08 KiB [emitted] [immutable] - Entrypoint main 17.9 KiB = fitting-256876500cd1e11ec846.js 1.9 KiB fitting-0ef410f237b15bfe113d.js 1.9 KiB fitting-b173671f478b4f9cb241.js 14.1 KiB - chunk (runtime: main) fitting-b173671f478b4f9cb241.js 1.87 KiB (javascript) 7.29 KiB (runtime) [entry] [rendered] + Entrypoint main 19.2 KiB = fitting-256876500cd1e11ec846.js 1.9 KiB fitting-0ef410f237b15bfe113d.js 1.9 KiB fitting-3aa6a54e85f89651e5ae.js 15.4 KiB + chunk (runtime: main) fitting-3aa6a54e85f89651e5ae.js 1.87 KiB (javascript) 8.33 KiB (runtime) [entry] [rendered] > ./index main - runtime modules 7.29 KiB 9 modules + runtime modules 8.33 KiB 10 modules cacheable modules 1.87 KiB ./e.js 899 bytes [dependent] [built] [code generated] ./f.js 900 bytes [dependent] [built] [code generated] @@ -29,15 +29,15 @@ exports[`StatsTestCases should print correct stats for aggressive-splitting-entr fitting (webpack x.x.x) compiled successfully in X ms content-change: - PublicPath: (none) - asset content-change-3a29baa0969d8fe2fa39.js 14.1 KiB [emitted] [immutable] + PublicPath: auto + asset content-change-6ace2c504d33379804e9.js 15.4 KiB [emitted] [immutable] asset content-change-0ef410f237b15bfe113d.js 1.9 KiB [emitted] [immutable] asset content-change-256876500cd1e11ec846.js 1.9 KiB [emitted] [immutable] asset content-change-e34e676a6c178b5d493b.js 1.08 KiB [emitted] [immutable] - Entrypoint main 17.9 KiB = content-change-256876500cd1e11ec846.js 1.9 KiB content-change-0ef410f237b15bfe113d.js 1.9 KiB content-change-3a29baa0969d8fe2fa39.js 14.1 KiB - chunk (runtime: main) content-change-3a29baa0969d8fe2fa39.js 1.87 KiB (javascript) 7.3 KiB (runtime) [entry] [rendered] + Entrypoint main 19.3 KiB = content-change-256876500cd1e11ec846.js 1.9 KiB content-change-0ef410f237b15bfe113d.js 1.9 KiB content-change-6ace2c504d33379804e9.js 15.4 KiB + chunk (runtime: main) content-change-6ace2c504d33379804e9.js 1.87 KiB (javascript) 8.33 KiB (runtime) [entry] [rendered] > ./index main - runtime modules 7.3 KiB 9 modules + runtime modules 8.33 KiB 10 modules cacheable modules 1.87 KiB ./e.js 899 bytes [dependent] [built] [code generated] ./f.js 900 bytes [dependent] [built] [code generated] @@ -57,8 +57,8 @@ content-change: `; exports[`StatsTestCases should print correct stats for aggressive-splitting-on-demand 1`] = ` -"PublicPath: (none) -asset d080b8911b72db22f6d4.js 10.1 KiB [emitted] [immutable] (name: main) +"PublicPath: auto +asset 0080aa228e232e439083.js 11.5 KiB [emitted] [immutable] (name: main) asset 2bc30c0edd0c9fa06940.js 1.91 KiB [emitted] [immutable] asset 6ce2fc05ded2844a80cb.js 1.91 KiB [emitted] [immutable] asset 1ec205e8858a643a9384.js 1.9 KiB [emitted] [immutable] @@ -70,14 +70,14 @@ asset d5a367eaab9f5bb1a8c2.js 1.9 KiB [emitted] [immutable] asset 268151d0ecbaa017b6b2.js 1010 bytes [emitted] [immutable] asset d12a3594bf404e747097.js 1010 bytes [emitted] [immutable] asset d9923f4628103bfc54b5.js 1010 bytes [emitted] [immutable] -Entrypoint main 10.1 KiB = d080b8911b72db22f6d4.js +Entrypoint main 11.5 KiB = 0080aa228e232e439083.js chunk (runtime: main) 0ef410f237b15bfe113d.js 1.76 KiB [rendered] [recorded] aggressive splitted > ./c ./d ./e ./index.js 3:0-30 ./c.js 899 bytes [built] [code generated] ./d.js 899 bytes [built] [code generated] -chunk (runtime: main) d080b8911b72db22f6d4.js (main) 248 bytes (javascript) 5.15 KiB (runtime) [entry] [rendered] +chunk (runtime: main) 0080aa228e232e439083.js (main) 248 bytes (javascript) 6.19 KiB (runtime) [entry] [rendered] > ./index main - runtime modules 5.15 KiB 6 modules + runtime modules 6.19 KiB 7 modules ./index.js 248 bytes [built] [code generated] chunk (runtime: main) 2bc30c0edd0c9fa06940.js 1.76 KiB [rendered] > ./f ./g ./h ./i ./j ./k ./index.js 4:0-51 @@ -125,9 +125,9 @@ webpack x.x.x compiled successfully in X ms" exports[`StatsTestCases should print correct stats for asset 1`] = ` "asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: main) -asset bundle.js 10.9 KiB [emitted] (name: main) +asset bundle.js 12.2 KiB [emitted] (name: main) asset static/file.html 12 bytes [emitted] (auxiliary name: main) -runtime modules 27 bytes 1 module +runtime modules 1.06 KiB 2 modules asset modules 8.9 KiB (javascript) 14.6 KiB (asset) ./images/file.png 42 bytes (javascript) 14.6 KiB (asset) [built] [code generated] ./images/file.svg 915 bytes [built] [code generated] @@ -138,9 +138,9 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for async-commons-chunk 1`] = ` -"chunk (runtime: main) main.js (main) 515 bytes (javascript) 4.84 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] +"chunk (runtime: main) main.js (main) 515 bytes (javascript) 5.87 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] > ./ main - runtime modules 4.84 KiB 6 modules + runtime modules 5.87 KiB 7 modules ./index.js 515 bytes [built] [code generated] chunk (runtime: main) 460.js 21 bytes <{179}> ={847}= [rendered] > ./index.js 17:1-21:3 @@ -166,9 +166,9 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto > ./g ./a.js 6:0-47 dependent modules 20 bytes [dependent] 1 module ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) disabled/main.js (main) 147 bytes (javascript) 5.48 KiB (runtime) [entry] [rendered] + chunk (runtime: main) disabled/main.js (main) 147 bytes (javascript) 6.52 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.48 KiB 8 modules + runtime modules 6.52 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) disabled/async-b.js (async-b) 152 bytes [rendered] > ./b ./index.js 2:0-47 @@ -182,9 +182,9 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto > ./c c dependent modules 60 bytes [dependent] 3 modules ./c.js + 1 modules 92 bytes [built] [code generated] - chunk (runtime: a) disabled/a.js (a) 201 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] + chunk (runtime: a) disabled/a.js (a) 201 bytes (javascript) 6.47 KiB (runtime) [entry] [rendered] > ./a a - runtime modules 5.42 KiB 8 modules + runtime modules 6.47 KiB 9 modules dependent modules 60 bytes [dependent] 3 modules ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) disabled/async-a.js (async-a) 201 bytes [rendered] @@ -201,9 +201,9 @@ default: chunk (runtime: a, main) default/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 5.49 KiB (runtime) [entry] [rendered] + chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 6.53 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.49 KiB 8 modules + runtime modules 6.53 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) default/282.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -233,9 +233,9 @@ default: chunk (runtime: main) default/769.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) default/a.js (a) 201 bytes (javascript) 5.48 KiB (runtime) [entry] [rendered] + chunk (runtime: a) default/a.js (a) 201 bytes (javascript) 6.52 KiB (runtime) [entry] [rendered] > ./a a - runtime modules 5.48 KiB 8 modules + runtime modules 6.52 KiB 9 modules dependent modules 60 bytes [dependent] 3 modules ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) default/async-a.js (async-a) 141 bytes [rendered] @@ -248,8 +248,8 @@ default: default (webpack x.x.x) compiled successfully vendors: - Entrypoint main 9.57 KiB = vendors/main.js - Entrypoint a 12.1 KiB = vendors/vendors.js 460 bytes vendors/a.js 11.6 KiB + Entrypoint main 10.9 KiB = vendors/main.js + Entrypoint a 13.5 KiB = vendors/vendors.js 460 bytes vendors/a.js 13 KiB Entrypoint b 6.32 KiB = vendors/vendors.js 460 bytes vendors/b.js 5.87 KiB Entrypoint c 6.32 KiB = vendors/vendors.js 460 bytes vendors/c.js 5.87 KiB chunk (runtime: b) vendors/b.js (b) 112 bytes (javascript) 2.58 KiB (runtime) [entry] [rendered] @@ -261,9 +261,9 @@ vendors: > ./g ./a.js 6:0-47 dependent modules 20 bytes [dependent] 1 module ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) vendors/main.js (main) 147 bytes (javascript) 5.48 KiB (runtime) [entry] [rendered] + chunk (runtime: main) vendors/main.js (main) 147 bytes (javascript) 6.52 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.48 KiB 8 modules + runtime modules 6.52 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: a, b, c) vendors/vendors.js (vendors) (id hint: vendors) 60 bytes [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a a @@ -285,9 +285,9 @@ vendors: dependent modules 40 bytes [dependent] 2 modules runtime modules 2.58 KiB 2 modules ./c.js 72 bytes [built] [code generated] - chunk (runtime: a) vendors/a.js (a) 161 bytes (javascript) 6.61 KiB (runtime) [entry] [rendered] + chunk (runtime: a) vendors/a.js (a) 161 bytes (javascript) 7.65 KiB (runtime) [entry] [rendered] > ./a a - runtime modules 6.61 KiB 8 modules + runtime modules 7.65 KiB 9 modules dependent modules 20 bytes [dependent] 1 module ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) vendors/async-a.js (async-a) 201 bytes [rendered] @@ -297,8 +297,8 @@ vendors: vendors (webpack x.x.x) compiled successfully multiple-vendors: - Entrypoint main 9.98 KiB = multiple-vendors/main.js - Entrypoint a 12.4 KiB = multiple-vendors/libs-x.js 200 bytes multiple-vendors/954.js 200 bytes multiple-vendors/767.js 200 bytes multiple-vendors/390.js 200 bytes multiple-vendors/a.js 11.7 KiB + Entrypoint main 11.4 KiB = multiple-vendors/main.js + Entrypoint a 13.8 KiB = multiple-vendors/libs-x.js 200 bytes multiple-vendors/954.js 200 bytes multiple-vendors/767.js 200 bytes multiple-vendors/390.js 200 bytes multiple-vendors/a.js 13 KiB Entrypoint b 6.45 KiB = multiple-vendors/libs-x.js 200 bytes multiple-vendors/954.js 200 bytes multiple-vendors/767.js 200 bytes multiple-vendors/568.js 200 bytes multiple-vendors/b.js 5.67 KiB Entrypoint c 6.45 KiB = multiple-vendors/libs-x.js 200 bytes multiple-vendors/769.js 200 bytes multiple-vendors/767.js 200 bytes multiple-vendors/568.js 200 bytes multiple-vendors/c.js 5.67 KiB chunk (runtime: a, b, c, main) multiple-vendors/libs-x.js (libs-x) (id hint: libs) 20 bytes [initial] [rendered] split chunk (cache group: libs) (name: libs-x) @@ -316,9 +316,9 @@ multiple-vendors: chunk (runtime: a, main) multiple-vendors/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) multiple-vendors/main.js (main) 147 bytes (javascript) 5.51 KiB (runtime) [entry] [rendered] + chunk (runtime: main) multiple-vendors/main.js (main) 147 bytes (javascript) 6.56 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.51 KiB 8 modules + runtime modules 6.56 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) multiple-vendors/async-b.js (async-b) 72 bytes [rendered] > ./b ./index.js 2:0-47 @@ -353,9 +353,9 @@ multiple-vendors: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) multiple-vendors/a.js (a) 121 bytes (javascript) 6.67 KiB (runtime) [entry] [rendered] + chunk (runtime: a) multiple-vendors/a.js (a) 121 bytes (javascript) 7.71 KiB (runtime) [entry] [rendered] > ./a a - runtime modules 6.67 KiB 8 modules + runtime modules 7.71 KiB 9 modules ./a.js 121 bytes [built] [code generated] chunk (runtime: main) multiple-vendors/async-a.js (async-a) 121 bytes [rendered] > ./a ./index.js 1:0-47 @@ -369,8 +369,8 @@ multiple-vendors: multiple-vendors (webpack x.x.x) compiled successfully all: - Entrypoint main 9.95 KiB = all/main.js - Entrypoint a 12.4 KiB = all/282.js 200 bytes all/954.js 200 bytes all/767.js 200 bytes all/390.js 200 bytes all/a.js 11.6 KiB + Entrypoint main 11.3 KiB = all/main.js + Entrypoint a 13.8 KiB = all/282.js 200 bytes all/954.js 200 bytes all/767.js 200 bytes all/390.js 200 bytes all/a.js 13 KiB Entrypoint b 6.45 KiB = all/282.js 200 bytes all/954.js 200 bytes all/767.js 200 bytes all/568.js 200 bytes all/b.js 5.67 KiB Entrypoint c 6.45 KiB = all/282.js 200 bytes all/769.js 200 bytes all/767.js 200 bytes all/568.js 200 bytes all/c.js 5.67 KiB chunk (runtime: b) all/b.js (b) 72 bytes (javascript) 2.6 KiB (runtime) [entry] [rendered] @@ -380,9 +380,9 @@ all: chunk (runtime: a, main) all/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) all/main.js (main) 147 bytes (javascript) 5.49 KiB (runtime) [entry] [rendered] + chunk (runtime: main) all/main.js (main) 147 bytes (javascript) 6.53 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.49 KiB 8 modules + runtime modules 6.53 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: a, b, c, main) all/282.js (id hint: vendors) 20 bytes [initial] [rendered] split chunk (cache group: vendors) > ./a ./index.js 1:0-47 @@ -425,9 +425,9 @@ all: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) all/a.js (a) 121 bytes (javascript) 6.66 KiB (runtime) [entry] [rendered] + chunk (runtime: a) all/a.js (a) 121 bytes (javascript) 7.7 KiB (runtime) [entry] [rendered] > ./a a - runtime modules 6.66 KiB 8 modules + runtime modules 7.7 KiB 9 modules ./a.js 121 bytes [built] [code generated] chunk (runtime: main) all/async-a.js (async-a) 121 bytes [rendered] > ./a ./index.js 1:0-47 @@ -442,7 +442,7 @@ all: `; exports[`StatsTestCases should print correct stats for chunk-module-id-range 1`] = ` -"PublicPath: (none) +"PublicPath: auto asset main1.js 4.39 KiB [emitted] (name: main1) asset main2.js 4.38 KiB [emitted] (name: main2) Entrypoint main1 4.39 KiB = main1.js @@ -469,14 +469,14 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for chunks 1`] = ` -"PublicPath: (none) -asset bundle.js 8.61 KiB [emitted] (name: main) +"PublicPath: auto +asset bundle.js 9.98 KiB [emitted] (name: main) asset 460.bundle.js 320 bytes [emitted] asset 524.bundle.js 206 bytes [emitted] asset 996.bundle.js 138 bytes [emitted] -chunk (runtime: main) bundle.js (main) 73 bytes (javascript) 4.84 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk (runtime: main) bundle.js (main) 73 bytes (javascript) 5.88 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main - runtime modules 4.84 KiB 6 modules + runtime modules 5.88 KiB 7 modules cacheable modules 73 bytes ./a.js 22 bytes [dependent] [built] [code generated] cjs self exports reference ./a.js 1:0-14 @@ -515,8 +515,8 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for chunks-development 1`] = ` -"PublicPath: (none) -asset bundle.js 9.76 KiB [emitted] (name: main) +"PublicPath: auto +asset bundle.js 11.1 KiB [emitted] (name: main) asset d_js-e_js.bundle.js 1.37 KiB [emitted] asset c_js.bundle.js 1.1 KiB [emitted] asset b_js.bundle.js 964 bytes [emitted] @@ -545,9 +545,9 @@ chunk d_js-e_js.bundle.js 60 bytes <{c_js}> [rendered] cjs self exports reference ./e.js 2:0-14 X ms -> X ms -> X ms (resolving: X ms, restoring: X ms, integration: X ms, building: X ms, storing: X ms) -chunk bundle.js (main) 73 bytes (javascript) 4.85 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] +chunk bundle.js (main) 73 bytes (javascript) 5.88 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] > ./index main - runtime modules 4.85 KiB 6 modules + runtime modules 5.88 KiB 7 modules cacheable modules 73 bytes ./a.js 22 bytes [dependent] [built] [code generated] cjs self exports reference ./a.js 1:0-14 @@ -564,8 +564,8 @@ webpack x.x.x compiled successfully in X ms" exports[`StatsTestCases should print correct stats for circular-correctness 1`] = ` "chunk (runtime: main) 128.bundle.js (b) 49 bytes <{179}> <{459}> >{459}< [rendered] ./module-b.js 49 bytes [built] [code generated] -chunk (runtime: main) bundle.js (main) 98 bytes (javascript) 6.08 KiB (runtime) >{128}< >{786}< [entry] [rendered] - runtime modules 6.08 KiB 9 modules +chunk (runtime: main) bundle.js (main) 98 bytes (javascript) 7.11 KiB (runtime) >{128}< >{786}< [entry] [rendered] + runtime modules 7.11 KiB 10 modules ./index.js 98 bytes [built] [code generated] chunk (runtime: main) 459.bundle.js (c) 98 bytes <{128}> <{786}> >{128}< >{786}< [rendered] ./module-c.js 98 bytes [built] [code generated] @@ -676,40 +676,40 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1` `; exports[`StatsTestCases should print correct stats for context-independence 1`] = ` -"asset main-ed1a19bb8f1e131951b5.js 8.89 KiB [emitted] [immutable] (name: main) - sourceMap main-ed1a19bb8f1e131951b5.js.map 7.91 KiB [emitted] [dev] (auxiliary name: main) +"asset main-dca06026a5b0027faf40.js 10.3 KiB [emitted] [immutable] (name: main) + sourceMap main-dca06026a5b0027faf40.js.map 9.16 KiB [emitted] [dev] (auxiliary name: main) asset 664-b8f1eb47758a24f778d7.js 453 bytes [emitted] [immutable] sourceMap 664-b8f1eb47758a24f778d7.js.map 344 bytes [emitted] [dev] -runtime modules 5.13 KiB 7 modules +runtime modules 6.17 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 106 bytes ./a/index.js 40 bytes [built] [code generated] ./a/chunk.js + 1 modules 66 bytes [built] [code generated] webpack x.x.x compiled successfully in X ms -asset main-ed1a19bb8f1e131951b5.js 8.89 KiB [emitted] [immutable] (name: main) - sourceMap main-ed1a19bb8f1e131951b5.js.map 7.91 KiB [emitted] [dev] (auxiliary name: main) +asset main-dca06026a5b0027faf40.js 10.3 KiB [emitted] [immutable] (name: main) + sourceMap main-dca06026a5b0027faf40.js.map 9.16 KiB [emitted] [dev] (auxiliary name: main) asset 664-b8f1eb47758a24f778d7.js 453 bytes [emitted] [immutable] sourceMap 664-b8f1eb47758a24f778d7.js.map 344 bytes [emitted] [dev] -runtime modules 5.13 KiB 7 modules +runtime modules 6.17 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 106 bytes ./b/index.js 40 bytes [built] [code generated] ./b/chunk.js + 1 modules 66 bytes [built] [code generated] webpack x.x.x compiled successfully in X ms -asset main-ccfb305c2978d8db7719.js 9.78 KiB [emitted] [immutable] (name: main) +asset main-d55c218ddb324e3dea19.js 11.1 KiB [emitted] [immutable] (name: main) asset 664-621821b58c4f6e28e877.js 1.51 KiB [emitted] [immutable] -runtime modules 5.13 KiB 7 modules +runtime modules 6.17 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 106 bytes ./a/index.js 40 bytes [built] [code generated] ./a/chunk.js + 1 modules 66 bytes [built] [code generated] webpack x.x.x compiled successfully in X ms -asset main-ccfb305c2978d8db7719.js 9.78 KiB [emitted] [immutable] (name: main) +asset main-d55c218ddb324e3dea19.js 11.1 KiB [emitted] [immutable] (name: main) asset 664-621821b58c4f6e28e877.js 1.51 KiB [emitted] [immutable] -runtime modules 5.13 KiB 7 modules +runtime modules 6.17 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 106 bytes ./b/index.js 40 bytes [built] [code generated] @@ -757,7 +757,7 @@ webpack x.x.x compiled with 1 error in X ms" `; exports[`StatsTestCases should print correct stats for entry-filename 1`] = ` -"PublicPath: (none) +"PublicPath: auto asset a.js 1.3 KiB [emitted] (name: a) asset c.js 1.3 KiB [emitted] (name: b) chunk (runtime: b) c.js (b) 22 bytes [entry] [rendered] @@ -777,8 +777,8 @@ webpack x.x.x compiled successfully in X ms" exports[`StatsTestCases should print correct stats for exclude-with-loader 1`] = ` "hidden assets 34 bytes 1 asset -asset bundle.js 3.73 KiB [emitted] (name: main) -runtime modules 695 bytes 4 modules +asset bundle.js 5.1 KiB [emitted] (name: main) +runtime modules 1.71 KiB 5 modules hidden modules 123 bytes 2 modules cacheable modules 119 bytes ./index.js 77 bytes [built] [code generated] @@ -797,16 +797,16 @@ exports[`StatsTestCases should print correct stats for graph-correctness-entries "chunk (runtime: e1, e2) b.js (b) 49 bytes <{786}> >{459}< [rendered] ./module-b.js 49 bytes [built] [code generated] import() ./module-b ./module-a.js 1:0-47 -chunk (runtime: e1) e1.js (e1) 49 bytes (javascript) 6.1 KiB (runtime) >{786}< [entry] [rendered] - runtime modules 6.1 KiB 9 modules +chunk (runtime: e1) e1.js (e1) 49 bytes (javascript) 7.14 KiB (runtime) >{786}< [entry] [rendered] + runtime modules 7.14 KiB 10 modules ./e1.js 49 bytes [built] [code generated] entry ./e1 e1 chunk (runtime: e1, e2) c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] [code generated] import() ./module-c ./e2.js 1:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk (runtime: e2) e2.js (e2) 49 bytes (javascript) 6.1 KiB (runtime) >{459}< [entry] [rendered] - runtime modules 6.1 KiB 9 modules +chunk (runtime: e2) e2.js (e2) 49 bytes (javascript) 7.14 KiB (runtime) >{459}< [entry] [rendered] + runtime modules 7.14 KiB 10 modules ./e2.js 49 bytes [built] [code generated] entry ./e2 e2 chunk (runtime: e1, e2) a.js (a) 49 bytes <{257}> <{459}> >{128}< [rendered] @@ -820,8 +820,8 @@ exports[`StatsTestCases should print correct stats for graph-correctness-modules "chunk (runtime: e1, e2) b.js (b) 179 bytes <{786}> >{459}< [rendered] ./module-b.js 179 bytes [built] [code generated] import() ./module-b ./module-a.js 1:0-47 -chunk (runtime: e1) e1.js (e1) 119 bytes (javascript) 6.37 KiB (runtime) >{786}< >{892}< [entry] [rendered] - runtime modules 6.37 KiB 10 modules +chunk (runtime: e1) e1.js (e1) 119 bytes (javascript) 7.4 KiB (runtime) >{786}< >{892}< [entry] [rendered] + runtime modules 7.4 KiB 11 modules cacheable modules 119 bytes ./e1.js 70 bytes [built] [code generated] entry ./e1 e1 @@ -833,8 +833,8 @@ chunk (runtime: e1, e2) c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] [code generated] import() ./module-c ./e2.js 2:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk (runtime: e2) e2.js (e2) 119 bytes (javascript) 6.37 KiB (runtime) >{459}< >{892}< [entry] [rendered] - runtime modules 6.37 KiB 10 modules +chunk (runtime: e2) e2.js (e2) 119 bytes (javascript) 7.4 KiB (runtime) >{459}< >{892}< [entry] [rendered] + runtime modules 7.4 KiB 11 modules cacheable modules 119 bytes ./e2.js 70 bytes [built] [code generated] entry ./e2 e2 @@ -873,8 +873,8 @@ chunk id-equals-name_js0.js 1 bytes [rendered] ./id-equals-name.js 1 bytes [built] [code generated] chunk id-equals-name_js_3.js 1 bytes [rendered] ./id-equals-name.js?3 1 bytes [built] [code generated] -chunk main.js (main) 639 bytes (javascript) 6.33 KiB (runtime) [entry] [rendered] - runtime modules 6.33 KiB 10 modules +chunk main.js (main) 639 bytes (javascript) 7.37 KiB (runtime) [entry] [rendered] + runtime modules 7.37 KiB 11 modules ./index.js 639 bytes [built] [code generated] chunk tree.js (tree) 43 bytes [rendered] dependent modules 29 bytes [dependent] 3 modules @@ -887,16 +887,16 @@ chunk trees.js (trees) 71 bytes [rendered] `; exports[`StatsTestCases should print correct stats for immutable 1`] = ` -"asset 5caadb43b1e48e6bfe50.js 11.1 KiB [emitted] [immutable] (name: main) +"asset c30341ca2ed860460ce7.js 12.5 KiB [emitted] [immutable] (name: main) asset b815a02217b4cae51059.js 884 bytes [emitted] [immutable]" `; exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` -"asset entry.js 10.3 KiB [emitted] (name: entry) +"asset entry.js 11.7 KiB [emitted] (name: entry) asset 398.js 480 bytes [emitted] asset 544.js 480 bytes [emitted] asset 718.js 480 bytes [emitted] -runtime modules 5.4 KiB 8 modules +runtime modules 6.44 KiB 9 modules built modules 724 bytes [built] modules by path ./templates/*.js 114 bytes ./templates/bar.js 38 bytes [optional] [built] [code generated] @@ -908,9 +908,9 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for import-weak 1`] = ` -"asset entry.js 10.9 KiB [emitted] (name: entry) +"asset entry.js 12.3 KiB [emitted] (name: entry) asset 836.js 138 bytes [emitted] -runtime modules 6.07 KiB 9 modules +runtime modules 7.11 KiB 10 modules orphan modules 37 bytes [orphan] 1 module cacheable modules 142 bytes ./entry.js 120 bytes [built] [code generated] @@ -919,7 +919,7 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for import-with-invalid-options-comments 1`] = ` -"runtime modules 7.05 KiB 11 modules +"runtime modules 8.08 KiB 12 modules cacheable modules 559 bytes ./index.js 50 bytes [built] [code generated] ./chunk.js 401 bytes [built] [code generated] [3 warnings] @@ -966,11 +966,11 @@ webpack x.x.x compiled successfully in X ms assets by chunk 895 bytes (id hint: all) asset c-all-b_js-5d2ee8f74cbe1c7c24e8.js 502 bytes [emitted] [immutable] (id hint: all) asset c-all-c_js-3f22b3dd1aa1ecb5f45e.js 393 bytes [emitted] [immutable] (id hint: all) -asset c-runtime~main-2769e1f5da93c44c8a70.js 12.4 KiB [emitted] [immutable] (name: runtime~main) +asset c-runtime~main-9ceddf596724e4da4223.js 13.7 KiB [emitted] [immutable] (name: runtime~main) asset c-main-3737497cd09f5bd99fe3.js 603 bytes [emitted] [immutable] (name: main) asset c-vendors-node_modules_vendor_js-93fc2ac2d261c82b4448.js 185 bytes [emitted] [immutable] (id hint: vendors) -Entrypoint main 13.3 KiB = c-runtime~main-2769e1f5da93c44c8a70.js 12.4 KiB c-all-c_js-3f22b3dd1aa1ecb5f45e.js 393 bytes c-main-3737497cd09f5bd99fe3.js 603 bytes -runtime modules 7.78 KiB 11 modules +Entrypoint main 14.7 KiB = c-runtime~main-9ceddf596724e4da4223.js 13.7 KiB c-all-c_js-3f22b3dd1aa1ecb5f45e.js 393 bytes c-main-3737497cd09f5bd99fe3.js 603 bytes +runtime modules 8.81 KiB 12 modules cacheable modules 101 bytes ./c.js 61 bytes [built] [code generated] ./b.js 17 bytes [built] [code generated] @@ -993,10 +993,10 @@ exports[`StatsTestCases should print correct stats for limit-chunk-count-plugin 1 chunks (webpack x.x.x) compiled successfully in X ms 2 chunks: - asset bundle2.js 10.5 KiB [emitted] (name: main) + asset bundle2.js 11.9 KiB [emitted] (name: main) asset 459.bundle2.js 662 bytes [emitted] (name: c) - chunk (runtime: main) bundle2.js (main) 101 bytes (javascript) 6.08 KiB (runtime) >{459}< [entry] [rendered] - runtime modules 6.08 KiB 9 modules + chunk (runtime: main) bundle2.js (main) 101 bytes (javascript) 7.11 KiB (runtime) >{459}< [entry] [rendered] + runtime modules 7.11 KiB 10 modules ./index.js 101 bytes [built] [code generated] chunk (runtime: main) 459.bundle2.js (c) 118 bytes <{179}> <{459}> >{459}< [rendered] dependent modules 44 bytes [dependent] @@ -1008,11 +1008,11 @@ exports[`StatsTestCases should print correct stats for limit-chunk-count-plugin 2 chunks (webpack x.x.x) compiled successfully in X ms 3 chunks: - asset bundle3.js 10.5 KiB [emitted] (name: main) + asset bundle3.js 11.9 KiB [emitted] (name: main) asset 459.bundle3.js 526 bytes [emitted] (name: c) asset 524.bundle3.js 206 bytes [emitted] - chunk (runtime: main) bundle3.js (main) 101 bytes (javascript) 6.08 KiB (runtime) >{459}< [entry] [rendered] - runtime modules 6.08 KiB 9 modules + chunk (runtime: main) bundle3.js (main) 101 bytes (javascript) 7.11 KiB (runtime) >{459}< [entry] [rendered] + runtime modules 7.11 KiB 10 modules ./index.js 101 bytes [built] [code generated] chunk (runtime: main) 459.bundle3.js (c) 74 bytes <{179}> >{524}< [rendered] ./a.js 22 bytes [built] [code generated] @@ -1024,12 +1024,12 @@ exports[`StatsTestCases should print correct stats for limit-chunk-count-plugin 3 chunks (webpack x.x.x) compiled successfully in X ms 4 chunks: - asset bundle4.js 10.5 KiB [emitted] (name: main) + asset bundle4.js 11.9 KiB [emitted] (name: main) asset 459.bundle4.js 390 bytes [emitted] (name: c) asset 394.bundle4.js 206 bytes [emitted] asset 524.bundle4.js 206 bytes [emitted] - chunk (runtime: main) bundle4.js (main) 101 bytes (javascript) 6.08 KiB (runtime) >{394}< >{459}< [entry] [rendered] - runtime modules 6.08 KiB 9 modules + chunk (runtime: main) bundle4.js (main) 101 bytes (javascript) 7.11 KiB (runtime) >{394}< >{459}< [entry] [rendered] + runtime modules 7.11 KiB 10 modules ./index.js 101 bytes [built] [code generated] chunk (runtime: main) 394.bundle4.js 44 bytes <{179}> [rendered] ./a.js 22 bytes [built] [code generated] @@ -1119,26 +1119,26 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for module-assets 1`] = ` -"assets by path *.js 10.2 KiB - asset main.js 8.92 KiB [emitted] (name: main) +"assets by path *.js 11.6 KiB + asset main.js 10.3 KiB [emitted] (name: main) asset a.js 744 bytes [emitted] (name: a) asset b.js 563 bytes [emitted] (name: b) assets by path *.png 42 KiB asset 1.png 21 KiB [emitted] (auxiliary name: a) asset 2.png 21 KiB [emitted] (auxiliary name: a, b) -Entrypoint main 8.92 KiB = main.js +Entrypoint main 10.3 KiB = main.js Chunk Group a 744 bytes (42 KiB) = a.js 744 bytes (1.png 21 KiB 2.png 21 KiB) Chunk Group b 563 bytes (21 KiB) = b.js 563 bytes (2.png 21 KiB) chunk (runtime: main) b.js (b) 67 bytes [rendered] ./node_modules/a/2.png 49 bytes [dependent] [built] [code generated] [1 asset] ./node_modules/b/index.js 18 bytes [built] [code generated] -chunk (runtime: main) main.js (main) 82 bytes (javascript) 5.13 KiB (runtime) [entry] [rendered] - runtime modules 5.13 KiB 7 modules +chunk (runtime: main) main.js (main) 82 bytes (javascript) 6.16 KiB (runtime) [entry] [rendered] + runtime modules 6.16 KiB 8 modules ./index.js 82 bytes [built] [code generated] chunk (runtime: main) a.js (a) 134 bytes [rendered] ./node_modules/a/2.png 49 bytes [dependent] [built] [code generated] [1 asset] ./node_modules/a/index.js + 1 modules 85 bytes [built] [code generated] [1 asset] -runtime modules 5.13 KiB 7 modules +runtime modules 6.16 KiB 8 modules orphan modules 49 bytes [orphan] 1 module modules with assets 234 bytes modules by path ./node_modules/a/ 134 bytes @@ -1150,9 +1150,9 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for module-deduplication 1`] = ` -"asset e1.js 11 KiB [emitted] (name: e1) -asset e2.js 11 KiB [emitted] (name: e2) -asset e3.js 11 KiB [emitted] (name: e3) +"asset e1.js 12.4 KiB [emitted] (name: e1) +asset e2.js 12.4 KiB [emitted] (name: e2) +asset e3.js 12.4 KiB [emitted] (name: e3) asset 172.js 730 bytes [emitted] asset 326.js 730 bytes [emitted] asset 923.js 730 bytes [emitted] @@ -1161,8 +1161,8 @@ asset 593.js 677 bytes [emitted] asset 716.js 677 bytes [emitted] chunk (runtime: e1) 114.js 28 bytes [rendered] ./async1.js 28 bytes [built] [code generated] -chunk (runtime: e3) e3.js (e3) 152 bytes (javascript) 5.66 KiB (runtime) [entry] [rendered] - runtime modules 5.66 KiB 9 modules +chunk (runtime: e3) e3.js (e3) 152 bytes (javascript) 6.7 KiB (runtime) [entry] [rendered] + runtime modules 6.7 KiB 10 modules cacheable modules 152 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] @@ -1172,8 +1172,8 @@ chunk (runtime: e3) e3.js (e3) 152 bytes (javascript) 5.66 KiB (runtime) [entry] chunk (runtime: e1, e3) 172.js 37 bytes [rendered] ./async2.js 28 bytes [built] [code generated] ./f.js 9 bytes [dependent] [built] [code generated] -chunk (runtime: e1) e1.js (e1) 152 bytes (javascript) 5.66 KiB (runtime) [entry] [rendered] - runtime modules 5.66 KiB 9 modules +chunk (runtime: e1) e1.js (e1) 152 bytes (javascript) 6.7 KiB (runtime) [entry] [rendered] + runtime modules 6.7 KiB 10 modules cacheable modules 152 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] @@ -1185,8 +1185,8 @@ chunk (runtime: e1, e2) 326.js 37 bytes [rendered] ./h.js 9 bytes [dependent] [built] [code generated] chunk (runtime: e3) 593.js 28 bytes [rendered] ./async3.js 28 bytes [built] [code generated] -chunk (runtime: e2) e2.js (e2) 152 bytes (javascript) 5.66 KiB (runtime) [entry] [rendered] - runtime modules 5.66 KiB 9 modules +chunk (runtime: e2) e2.js (e2) 152 bytes (javascript) 6.7 KiB (runtime) [entry] [rendered] + runtime modules 6.7 KiB 10 modules cacheable modules 152 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] @@ -1202,22 +1202,22 @@ webpack x.x.x compiled successfully" `; exports[`StatsTestCases should print correct stats for module-deduplication-named 1`] = ` -"asset e1.js 10.9 KiB [emitted] (name: e1) -asset e2.js 10.9 KiB [emitted] (name: e2) -asset e3.js 10.9 KiB [emitted] (name: e3) +"asset e1.js 12.2 KiB [emitted] (name: e1) +asset e2.js 12.2 KiB [emitted] (name: e2) +asset e3.js 12.2 KiB [emitted] (name: e3) asset async1.js 835 bytes [emitted] (name: async1) asset async2.js 835 bytes [emitted] (name: async2) asset async3.js 835 bytes [emitted] (name: async3) -chunk (runtime: e3) e3.js (e3) 144 bytes (javascript) 5.71 KiB (runtime) [entry] [rendered] - runtime modules 5.71 KiB 9 modules +chunk (runtime: e3) e3.js (e3) 144 bytes (javascript) 6.74 KiB (runtime) [entry] [rendered] + runtime modules 6.74 KiB 10 modules cacheable modules 144 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] ./e3.js 108 bytes [built] [code generated] ./g.js 9 bytes [dependent] [built] [code generated] ./h.js 9 bytes [dependent] [built] [code generated] -chunk (runtime: e1) e1.js (e1) 144 bytes (javascript) 5.71 KiB (runtime) [entry] [rendered] - runtime modules 5.71 KiB 9 modules +chunk (runtime: e1) e1.js (e1) 144 bytes (javascript) 6.74 KiB (runtime) [entry] [rendered] + runtime modules 6.74 KiB 10 modules cacheable modules 144 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] @@ -1230,8 +1230,8 @@ chunk (runtime: e1, e2, e3) async1.js (async1) 89 bytes [rendered] chunk (runtime: e1, e2, e3) async3.js (async3) 89 bytes [rendered] ./async3.js 80 bytes [built] [code generated] ./h.js 9 bytes [dependent] [built] [code generated] -chunk (runtime: e2) e2.js (e2) 144 bytes (javascript) 5.71 KiB (runtime) [entry] [rendered] - runtime modules 5.71 KiB 9 modules +chunk (runtime: e2) e2.js (e2) 144 bytes (javascript) 6.74 KiB (runtime) [entry] [rendered] + runtime modules 6.74 KiB 10 modules cacheable modules 144 bytes ./a.js 9 bytes [dependent] [built] [code generated] ./b.js 9 bytes [dependent] [built] [code generated] @@ -1331,7 +1331,7 @@ webpack x.x.x compiled with 2 errors in X ms" `; exports[`StatsTestCases should print correct stats for named-chunk-groups 1`] = ` -"Chunk Group main 10.1 KiB = a-main.js +"Chunk Group main 11.5 KiB = a-main.js Chunk Group async-a 1.05 KiB = a-52.js 241 bytes a-async-a.js 834 bytes Chunk Group async-b 1.05 KiB = a-52.js 241 bytes a-async-b.js 834 bytes Chunk Group async-c 963 bytes = a-vendors.js 330 bytes a-async-c.js 633 bytes @@ -1339,9 +1339,9 @@ chunk (runtime: main) a-52.js 133 bytes [rendered] split chunk (cache group: def > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] [code generated] -chunk (runtime: main) a-main.js (main) 146 bytes (javascript) 5.74 KiB (runtime) [entry] [rendered] +chunk (runtime: main) a-main.js (main) 146 bytes (javascript) 6.78 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.74 KiB 9 modules + runtime modules 6.78 KiB 10 modules ./index.js 146 bytes [built] [code generated] chunk (runtime: main) a-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) (name: vendors) > ./c ./index.js 3:0-47 @@ -1358,7 +1358,7 @@ chunk (runtime: main) a-async-a.js (async-a) 175 bytes [rendered] ./a.js 175 bytes [built] [code generated] webpack x.x.x compiled successfully -Entrypoint main 10.1 KiB = b-main.js +Entrypoint main 11.5 KiB = b-main.js Chunk Group async-a 1.05 KiB = b-52.js 241 bytes b-async-a.js 834 bytes Chunk Group async-b 1.05 KiB = b-52.js 241 bytes b-async-b.js 834 bytes Chunk Group async-c 963 bytes = b-vendors.js 330 bytes b-async-c.js 633 bytes @@ -1366,9 +1366,9 @@ chunk (runtime: main) b-52.js 133 bytes [rendered] split chunk (cache group: def > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] [code generated] -chunk (runtime: main) b-main.js (main) 146 bytes (javascript) 5.74 KiB (runtime) [entry] [rendered] +chunk (runtime: main) b-main.js (main) 146 bytes (javascript) 6.78 KiB (runtime) [entry] [rendered] > ./ main - runtime modules 5.74 KiB 9 modules + runtime modules 6.78 KiB 10 modules ./index.js 146 bytes [built] [code generated] chunk (runtime: main) b-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) (name: vendors) > ./c ./index.js 3:0-47 @@ -1400,10 +1400,10 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for named-chunks-plugin-async 1`] = ` -"asset entry.js 10.4 KiB [emitted] (name: entry) +"asset entry.js 11.8 KiB [emitted] (name: entry) asset modules_a_js.js 312 bytes [emitted] asset modules_b_js.js 149 bytes [emitted] -runtime modules 6.07 KiB 9 modules +runtime modules 7.11 KiB 10 modules cacheable modules 106 bytes ./entry.js 47 bytes [built] [code generated] ./modules/a.js 37 bytes [built] [code generated] @@ -1423,7 +1423,7 @@ webpack x.x.x compiled with 1 warning in X ms" `; exports[`StatsTestCases should print correct stats for optimize-chunks 1`] = ` -"asset main.js 9.41 KiB {179} [emitted] (name: main) +"asset main.js 10.8 KiB {179} [emitted] (name: main) asset cir2 from cir1.js 374 bytes {288}, {289} [emitted] (name: cir2 from cir1) asset cir1.js 330 bytes {592} [emitted] (name: cir1) asset cir2.js 330 bytes {289} [emitted] (name: cir2) @@ -1435,9 +1435,9 @@ chunk {90} (runtime: main) ab.js (ab) 2 bytes <{179}> >{753}< [rendered] > [10] ./index.js 1:0-6:8 ./modules/a.js [839] 1 bytes {90} {374} [built] [code generated] ./modules/b.js [836] 1 bytes {90} {374} [built] [code generated] -chunk {179} (runtime: main) main.js (main) 524 bytes (javascript) 4.94 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] +chunk {179} (runtime: main) main.js (main) 524 bytes (javascript) 5.97 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] > ./index main - runtime modules 4.94 KiB 6 modules + runtime modules 5.97 KiB 7 modules cacheable modules 524 bytes ./index.js [10] 523 bytes {179} [built] [code generated] ./modules/f.js [544] 1 bytes {179} [dependent] [built] [code generated] @@ -1564,12 +1564,12 @@ webpack x.x.x compiled with 3 warnings in X ms" `; exports[`StatsTestCases should print correct stats for performance-disabled 1`] = ` -"asset main.js 302 KiB [emitted] (name: main) +"asset main.js 303 KiB [emitted] (name: main) asset 460.js 320 bytes [emitted] asset 524.js 206 bytes [emitted] asset 996.js 138 bytes [emitted] -Entrypoint main 302 KiB = main.js -runtime modules 4.84 KiB 6 modules +Entrypoint main 303 KiB = main.js +runtime modules 5.87 KiB 7 modules cacheable modules 293 KiB ./index.js 52 bytes [built] [code generated] ./a.js 293 KiB [built] [code generated] @@ -1581,12 +1581,12 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for performance-error 1`] = ` -"asset main.js 302 KiB [emitted] [big] (name: main) +"asset main.js 303 KiB [emitted] [big] (name: main) asset 460.js 320 bytes [emitted] asset 524.js 206 bytes [emitted] asset 996.js 138 bytes [emitted] -Entrypoint main [big] 302 KiB = main.js -runtime modules 4.84 KiB 6 modules +Entrypoint main [big] 303 KiB = main.js +runtime modules 5.87 KiB 7 modules cacheable modules 293 KiB ./index.js 52 bytes [built] [code generated] ./a.js 293 KiB [built] [code generated] @@ -1598,11 +1598,11 @@ cacheable modules 293 KiB ERROR in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: - main.js (302 KiB) + main.js (303 KiB) ERROR in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: - main (302 KiB) + main (303 KiB) main.js @@ -1640,12 +1640,12 @@ webpack x.x.x compiled with 3 warnings in X ms" `; exports[`StatsTestCases should print correct stats for performance-no-hints 1`] = ` -"asset main.js 302 KiB [emitted] [big] (name: main) +"asset main.js 303 KiB [emitted] [big] (name: main) asset 460.js 320 bytes [emitted] asset 524.js 206 bytes [emitted] asset 996.js 138 bytes [emitted] -Entrypoint main [big] 302 KiB = main.js -runtime modules 4.84 KiB 6 modules +Entrypoint main [big] 303 KiB = main.js +runtime modules 5.87 KiB 7 modules cacheable modules 293 KiB ./index.js 52 bytes [built] [code generated] ./a.js 293 KiB [built] [code generated] @@ -1687,17 +1687,17 @@ webpack x.x.x compiled with 3 errors in X ms" `; exports[`StatsTestCases should print correct stats for prefetch 1`] = ` -"asset main.js 13.8 KiB {179} [emitted] (name: main) +"asset main.js 15.2 KiB {179} [emitted] (name: main) asset prefetched.js 553 bytes {505} [emitted] (name: prefetched) asset inner2.js 150 bytes {641} [emitted] (name: inner2) asset inner.js 110 bytes {746} [emitted] (name: inner) asset prefetched2.js 110 bytes {379} [emitted] (name: prefetched2) asset prefetched3.js 110 bytes {220} [emitted] (name: prefetched3) asset normal.js 109 bytes {30} [emitted] (name: normal) -Entrypoint main 13.8 KiB = main.js +Entrypoint main 15.2 KiB = main.js prefetch: prefetched2.js {379} (name: prefetched2), prefetched.js {505} (name: prefetched), prefetched3.js {220} (name: prefetched3) chunk {30} (runtime: main) normal.js (normal) 1 bytes <{179}> [rendered] -chunk {179} (runtime: main) main.js (main) 436 bytes (javascript) 7.49 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] +chunk {179} (runtime: main) main.js (main) 436 bytes (javascript) 8.53 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] chunk {220} (runtime: main) prefetched3.js (prefetched3) 1 bytes <{179}> [rendered] chunk {379} (runtime: main) prefetched2.js (prefetched2) 1 bytes <{179}> [rendered] chunk {505} (runtime: main) prefetched.js (prefetched) 228 bytes <{179}> >{641}< >{746}< (prefetch: {641} {746}) [rendered] @@ -1712,7 +1712,7 @@ chunk (runtime: main) c1.js (c1) 1 bytes <{459}> [rendered] chunk (runtime: main) b.js (b) 203 bytes <{179}> >{132}< >{751}< >{978}< (prefetch: {751} {132}) (preload: {978}) [rendered] chunk (runtime: main) b3.js (b3) 1 bytes <{128}> [rendered] chunk (runtime: main) a2.js (a2) 1 bytes <{786}> [rendered] -chunk (runtime: main) main.js (main) 195 bytes (javascript) 8.16 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] +chunk (runtime: main) main.js (main) 195 bytes (javascript) 9.2 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] chunk (runtime: main) c.js (c) 134 bytes <{179}> >{3}< >{76}< (preload: {76} {3}) [rendered] chunk (runtime: main) b1.js (b1) 1 bytes <{128}> [rendered] chunk (runtime: main) a.js (a) 136 bytes <{179}> >{74}< >{178}< (prefetch: {74} {178}) [rendered] @@ -1720,17 +1720,17 @@ chunk (runtime: main) b2.js (b2) 1 bytes <{128}> [rendered]" `; exports[`StatsTestCases should print correct stats for preload 1`] = ` -"asset main.js 13.1 KiB [emitted] (name: main) +"asset main.js 14.5 KiB [emitted] (name: main) asset preloaded.js 553 bytes [emitted] (name: preloaded) asset inner2.js 150 bytes [emitted] (name: inner2) asset inner.js 110 bytes [emitted] (name: inner) asset normal.js 109 bytes [emitted] (name: normal) asset preloaded2.js 109 bytes [emitted] (name: preloaded2) asset preloaded3.js 108 bytes [emitted] (name: preloaded3) -Entrypoint main 13.1 KiB = main.js +Entrypoint main 14.5 KiB = main.js preload: preloaded2.js (name: preloaded2), preloaded.js (name: preloaded), preloaded3.js (name: preloaded3) chunk (runtime: main) normal.js (normal) 1 bytes [rendered] -chunk (runtime: main) main.js (main) 424 bytes (javascript) 7.31 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] +chunk (runtime: main) main.js (main) 424 bytes (javascript) 8.35 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] chunk (runtime: main) preloaded3.js (preloaded3) 1 bytes [rendered] chunk (runtime: main) preloaded2.js (preloaded2) 1 bytes [rendered] chunk (runtime: main) inner2.js (inner2) 2 bytes [rendered] @@ -1747,13 +1747,13 @@ exports[`StatsTestCases should print correct stats for preset-detailed 1`] = ` <+> [LogTestPlugin] Collaped group [LogTestPlugin] Log [LogTestPlugin] End -PublicPath: (none) -asset main.js 8.61 KiB {179} [emitted] (name: main) +PublicPath: auto +asset main.js 9.97 KiB {179} [emitted] (name: main) asset 460.js 320 bytes {460} [emitted] asset 524.js 206 bytes {524} [emitted] asset 996.js 138 bytes {996} [emitted] -Entrypoint main 8.61 KiB = main.js -chunk {179} (runtime: main) main.js (main) 73 bytes (javascript) 4.84 KiB (runtime) >{460}< >{996}< [entry] [rendered] +Entrypoint main 9.97 KiB = main.js +chunk {179} (runtime: main) main.js (main) 73 bytes (javascript) 5.87 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main chunk {460} (runtime: main) 460.js 54 bytes <{179}> >{524}< [rendered] > ./c [10] ./index.js 3:0-16 @@ -1761,6 +1761,28 @@ chunk {524} (runtime: main) 524.js 44 bytes <{460}> [rendered] > [460] ./c.js 1:0-52 chunk {996} (runtime: main) 996.js 22 bytes <{179}> [rendered] > ./b [10] ./index.js 2:0-16 +runtime modules 5.87 KiB + webpack/runtime/ensure chunk 326 bytes {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/get javascript chunk filename 167 bytes {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/global 221 bytes {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/hasOwnProperty shorthand 86 bytes {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/jsonp chunk loading 2.89 KiB {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/load script 1.36 KiB {179} [code generated] + [no exports] + [used exports unknown] + webpack/runtime/publicPath 867 bytes {179} [code generated] + [no exports] + [used exports unknown] cacheable modules 193 bytes ./index.js [10] 51 bytes {179} [depth 0] [built] [code generated] [no exports used] @@ -1784,25 +1806,6 @@ cacheable modules 193 bytes [used exports unknown] CommonJS bailout: module.exports is used directly at 1:0-14 ModuleConcatenation bailout: Module is not an ECMAScript module -runtime modules 4.84 KiB - webpack/runtime/ensure chunk 326 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/get javascript chunk filename 167 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/hasOwnProperty shorthand 86 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/jsonp chunk loading 2.89 KiB {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/load script 1.36 KiB {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/publicPath 27 bytes {179} [code generated] - [no exports] - [used exports unknown] LOG from LogTestPlugin <-> Group @@ -1841,7 +1844,7 @@ LOG from webpack.FileSystemInfo Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations Managed items info in cache: 0 items -1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (be376862a2b82339d214)" +1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (13deaab31b323b01d24e)" `; exports[`StatsTestCases should print correct stats for preset-errors-only 1`] = `""`; @@ -1872,7 +1875,7 @@ exports[`StatsTestCases should print correct stats for preset-minimal 1`] = ` " [LogTestPlugin] Error [LogTestPlugin] Warning 4 assets -12 modules +13 modules LOG from LogTestPlugin Error @@ -1915,11 +1918,11 @@ exports[`StatsTestCases should print correct stats for preset-normal 1`] = ` " [LogTestPlugin] Error [LogTestPlugin] Warning [LogTestPlugin] Info -asset main.js 8.61 KiB [emitted] (name: main) +asset main.js 9.97 KiB [emitted] (name: main) asset 460.js 320 bytes [emitted] asset 524.js 206 bytes [emitted] asset 996.js 138 bytes [emitted] -runtime modules 4.84 KiB 6 modules +runtime modules 5.87 KiB 7 modules cacheable modules 193 bytes ./index.js 51 bytes [built] [code generated] ./a.js 22 bytes [built] [code generated] @@ -1938,11 +1941,11 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for preset-normal-performance 1`] = ` -"asset main.js 302 KiB [emitted] [big] (name: main) +"asset main.js 303 KiB [emitted] [big] (name: main) asset 460.js 320 bytes [emitted] asset 524.js 206 bytes [emitted] asset 996.js 138 bytes [emitted] -runtime modules 4.84 KiB 6 modules +runtime modules 5.87 KiB 7 modules cacheable modules 293 KiB ./index.js 52 bytes [built] [code generated] ./a.js 293 KiB [built] [code generated] @@ -1954,11 +1957,11 @@ cacheable modules 293 KiB WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: - main.js (302 KiB) + main.js (303 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: - main (302 KiB) + main (303 KiB) main.js @@ -1966,11 +1969,11 @@ webpack x.x.x compiled with 2 warnings in X ms" `; exports[`StatsTestCases should print correct stats for preset-normal-performance-ensure-filter-sourcemaps 1`] = ` -"asset main.js 302 KiB [emitted] [big] (name: main) 1 related asset +"asset main.js 303 KiB [emitted] [big] (name: main) 1 related asset asset 460.js 352 bytes [emitted] 1 related asset asset 524.js 238 bytes [emitted] 1 related asset asset 996.js 170 bytes [emitted] 1 related asset -runtime modules 4.84 KiB 6 modules +runtime modules 5.87 KiB 7 modules cacheable modules 293 KiB ./index.js 52 bytes [built] [code generated] ./a.js 293 KiB [built] [code generated] @@ -1982,11 +1985,11 @@ cacheable modules 293 KiB WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: - main.js (302 KiB) + main.js (303 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: - main (302 KiB) + main (303 KiB) main.js @@ -2012,33 +2015,15 @@ exports[`StatsTestCases should print correct stats for preset-verbose 1`] = ` [LogTestPlugin] Inner inner message [LogTestPlugin] Log [LogTestPlugin] End -PublicPath: (none) -asset main.js 8.61 KiB {179} [emitted] (name: main) +PublicPath: auto +asset main.js 9.97 KiB {179} [emitted] (name: main) asset 460.js 320 bytes {460} [emitted] asset 524.js 206 bytes {524} [emitted] asset 996.js 138 bytes {996} [emitted] -Entrypoint main 8.61 KiB = main.js -chunk {179} (runtime: main) main.js (main) 73 bytes (javascript) 4.84 KiB (runtime) >{460}< >{996}< [entry] [rendered] +Entrypoint main 9.97 KiB = main.js +chunk {179} (runtime: main) main.js (main) 73 bytes (javascript) 5.87 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main - runtime modules 4.84 KiB - webpack/runtime/ensure chunk 326 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/get javascript chunk filename 167 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/hasOwnProperty shorthand 86 bytes {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/jsonp chunk loading 2.89 KiB {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/load script 1.36 KiB {179} [code generated] - [no exports] - [used exports unknown] - webpack/runtime/publicPath 27 bytes {179} [code generated] - [no exports] - [used exports unknown] + runtime modules 5.87 KiB 7 modules cacheable modules 73 bytes ./a.js [847] 22 bytes {179} [depth 1] [dependent] [built] [code generated] [used exports unknown] @@ -2198,19 +2183,19 @@ LOG from webpack.FileSystemInfo Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations Managed items info in cache: 0 items -1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (be376862a2b82339d214)" +1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (13deaab31b323b01d24e)" `; exports[`StatsTestCases should print correct stats for real-content-hash 1`] = ` "a-normal: - assets by path *.js 2.48 KiB - asset 724d7409f0fb4e0b3145-724d74.js 2.09 KiB [emitted] [immutable] [minimized] (name: runtime~main) + assets by path *.js 2.98 KiB + asset 24cfa5c05911cd5cbbd1-24cfa5.js 2.59 KiB [emitted] [immutable] [minimized] (name: runtime~main) asset 3cc8faad16137711c07e-3cc8fa.js 210 bytes [emitted] [immutable] [minimized] (name: main) asset b6f77787a670e97d47b5-b6f777.js 193 bytes [emitted] [immutable] [minimized] (name: lazy) asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: lazy) asset 7382fad5b015914e0811.jpg 5.89 KiB [emitted] [immutable] (auxiliary name: main) - Entrypoint main 2.29 KiB (5.89 KiB) = 724d7409f0fb4e0b3145-724d74.js 2.09 KiB 3cc8faad16137711c07e-3cc8fa.js 210 bytes 1 auxiliary asset - runtime modules 6.32 KiB 7 modules + Entrypoint main 2.8 KiB (5.89 KiB) = 24cfa5c05911cd5cbbd1-24cfa5.js 2.59 KiB 3cc8faad16137711c07e-3cc8fa.js 210 bytes 1 auxiliary asset + runtime modules 7.36 KiB 8 modules orphan modules 23 bytes [orphan] 1 module cacheable modules 340 bytes (javascript) 20.4 KiB (asset) javascript modules 256 bytes @@ -2222,14 +2207,14 @@ exports[`StatsTestCases should print correct stats for real-content-hash 1`] = ` a-normal (webpack x.x.x) compiled successfully in X ms b-normal: - assets by path *.js 2.48 KiB - asset 7cc752ab357d591e1e3c-7cc752.js 2.09 KiB [emitted] [immutable] [minimized] (name: runtime~main) + assets by path *.js 2.98 KiB + asset 2cc3ac5aa5440f28a6f9-2cc3ac.js 2.59 KiB [emitted] [immutable] [minimized] (name: runtime~main) asset 3cc8faad16137711c07e-3cc8fa.js 210 bytes [emitted] [immutable] [minimized] (name: main) asset b6f77787a670e97d47b5-b6f777.js 193 bytes [emitted] [immutable] [minimized] (name: lazy) asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: lazy) asset 7382fad5b015914e0811.jpg 5.89 KiB [emitted] [immutable] (auxiliary name: main) - Entrypoint main 2.29 KiB (5.89 KiB) = 7cc752ab357d591e1e3c-7cc752.js 2.09 KiB 3cc8faad16137711c07e-3cc8fa.js 210 bytes 1 auxiliary asset - runtime modules 6.32 KiB 7 modules + Entrypoint main 2.8 KiB (5.89 KiB) = 2cc3ac5aa5440f28a6f9-2cc3ac.js 2.59 KiB 3cc8faad16137711c07e-3cc8fa.js 210 bytes 1 auxiliary asset + runtime modules 7.36 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 295 bytes (javascript) 20.4 KiB (asset) javascript modules 211 bytes @@ -2241,17 +2226,17 @@ b-normal: b-normal (webpack x.x.x) compiled successfully in X ms a-source-map: - assets by path *.js 2.65 KiB - asset ffe92bc2786746a99419-ffe92b.js 2.14 KiB [emitted] [immutable] [minimized] (name: runtime~main) - sourceMap ffe92bc2786746a99419-ffe92b.js.map 12.6 KiB [emitted] [dev] (auxiliary name: runtime~main) + assets by path *.js 3.15 KiB + asset 96f5411885597e14bcfb-96f541.js 2.65 KiB [emitted] [immutable] [minimized] (name: runtime~main) + sourceMap 96f5411885597e14bcfb-96f541.js.map 14.3 KiB [emitted] [dev] (auxiliary name: runtime~main) asset b8bfcec62cdd15c9a840-b8bfce.js 266 bytes [emitted] [immutable] [minimized] (name: main) sourceMap b8bfcec62cdd15c9a840-b8bfce.js.map 366 bytes [emitted] [dev] (auxiliary name: main) asset c7c0f8bb2e61b59a89f5-c7c0f8.js 249 bytes [emitted] [immutable] [minimized] (name: lazy) sourceMap c7c0f8bb2e61b59a89f5-c7c0f8.js.map 331 bytes [emitted] [dev] (auxiliary name: lazy) asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: lazy) asset 7382fad5b015914e0811.jpg 5.89 KiB [emitted] [immutable] (auxiliary name: main) - Entrypoint main 2.4 KiB (18.8 KiB) = ffe92bc2786746a99419-ffe92b.js 2.14 KiB b8bfcec62cdd15c9a840-b8bfce.js 266 bytes 3 auxiliary assets - runtime modules 6.32 KiB 7 modules + Entrypoint main 2.91 KiB (20.5 KiB) = 96f5411885597e14bcfb-96f541.js 2.65 KiB b8bfcec62cdd15c9a840-b8bfce.js 266 bytes 3 auxiliary assets + runtime modules 7.36 KiB 8 modules orphan modules 23 bytes [orphan] 1 module cacheable modules 340 bytes (javascript) 20.4 KiB (asset) javascript modules 256 bytes @@ -2263,17 +2248,17 @@ a-source-map: a-source-map (webpack x.x.x) compiled successfully in X ms b-source-map: - assets by path *.js 2.65 KiB - asset 5199c33aa0e8782a7f86-5199c3.js 2.14 KiB [emitted] [immutable] [minimized] (name: runtime~main) - sourceMap 5199c33aa0e8782a7f86-5199c3.js.map 12.6 KiB [emitted] [dev] (auxiliary name: runtime~main) + assets by path *.js 3.15 KiB + asset 24c0cd320ce296ce77e9-24c0cd.js 2.65 KiB [emitted] [immutable] [minimized] (name: runtime~main) + sourceMap 24c0cd320ce296ce77e9-24c0cd.js.map 14.3 KiB [emitted] [dev] (auxiliary name: runtime~main) asset b8bfcec62cdd15c9a840-b8bfce.js 266 bytes [emitted] [immutable] [minimized] (name: main) sourceMap b8bfcec62cdd15c9a840-b8bfce.js.map 323 bytes [emitted] [dev] (auxiliary name: main) asset c7c0f8bb2e61b59a89f5-c7c0f8.js 249 bytes [emitted] [immutable] [minimized] (name: lazy) sourceMap c7c0f8bb2e61b59a89f5-c7c0f8.js.map 327 bytes [emitted] [dev] (auxiliary name: lazy) asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: lazy) asset 7382fad5b015914e0811.jpg 5.89 KiB [emitted] [immutable] (auxiliary name: main) - Entrypoint main 2.4 KiB (18.8 KiB) = 5199c33aa0e8782a7f86-5199c3.js 2.14 KiB b8bfcec62cdd15c9a840-b8bfce.js 266 bytes 3 auxiliary assets - runtime modules 6.32 KiB 7 modules + Entrypoint main 2.91 KiB (20.5 KiB) = 24c0cd320ce296ce77e9-24c0cd.js 2.65 KiB b8bfcec62cdd15c9a840-b8bfce.js 266 bytes 3 auxiliary assets + runtime modules 7.36 KiB 8 modules orphan modules 19 bytes [orphan] 1 module cacheable modules 295 bytes (javascript) 20.4 KiB (asset) javascript modules 211 bytes @@ -2287,21 +2272,21 @@ b-source-map: exports[`StatsTestCases should print correct stats for related-assets 1`] = ` "default: - assets by path *.js 14.4 KiB - asset default-main.js 13.3 KiB [emitted] (name: main) 3 related assets + assets by path *.js 15.8 KiB + asset default-main.js 14.6 KiB [emitted] (name: main) 3 related assets asset default-chunk_js.js 1.11 KiB [emitted] 3 related assets assets by path *.css 142 bytes asset default-chunk_js.css 73 bytes [emitted] 3 related assets asset default-main.css 69 bytes [emitted] (name: main) 3 related assets relatedAssets: - assets by path *.js 14.4 KiB - asset relatedAssets-main.js 13.3 KiB [emitted] (name: main) - compressed relatedAssets-main.js.br 13.3 KiB [emitted] - compressed relatedAssets-main.js.gz 13.3 KiB [emitted] - sourceMap relatedAssets-main.js.map 11.3 KiB [emitted] [dev] (auxiliary name: main) - compressed relatedAssets-main.js.map.br 11.3 KiB [emitted] - compressed relatedAssets-main.js.map.gz 11.3 KiB [emitted] + assets by path *.js 15.8 KiB + asset relatedAssets-main.js 14.7 KiB [emitted] (name: main) + compressed relatedAssets-main.js.br 14.7 KiB [emitted] + compressed relatedAssets-main.js.gz 14.7 KiB [emitted] + sourceMap relatedAssets-main.js.map 12.6 KiB [emitted] [dev] (auxiliary name: main) + compressed relatedAssets-main.js.map.br 12.6 KiB [emitted] + compressed relatedAssets-main.js.map.gz 12.6 KiB [emitted] asset relatedAssets-chunk_js.js 1.12 KiB [emitted] compressed relatedAssets-chunk_js.js.br 1.12 KiB [emitted] compressed relatedAssets-chunk_js.js.gz 1.12 KiB [emitted] @@ -2323,11 +2308,11 @@ relatedAssets: compressed relatedAssets-main.css.gz 75 bytes [emitted] exclude1: - assets by path *.js 14.4 KiB - asset exclude1-main.js 13.3 KiB [emitted] (name: main) - hidden assets 26.6 KiB 2 assets - sourceMap exclude1-main.js.map 11.3 KiB [emitted] [dev] (auxiliary name: main) - hidden assets 22.7 KiB 2 assets + assets by path *.js 15.8 KiB + asset exclude1-main.js 14.6 KiB [emitted] (name: main) + hidden assets 29.3 KiB 2 assets + sourceMap exclude1-main.js.map 12.6 KiB [emitted] [dev] (auxiliary name: main) + hidden assets 25.2 KiB 2 assets 1 related asset 1 related asset asset exclude1-chunk_js.js 1.11 KiB [emitted] @@ -2351,11 +2336,11 @@ exclude1: 1 related asset exclude2: - assets by path *.js 14.4 KiB - asset exclude2-main.js 13.3 KiB [emitted] (name: main) - hidden assets 11.3 KiB 1 asset - compressed exclude2-main.js.br 13.3 KiB [emitted] - compressed exclude2-main.js.gz 13.3 KiB [emitted] + assets by path *.js 15.8 KiB + asset exclude2-main.js 14.6 KiB [emitted] (name: main) + hidden assets 12.6 KiB 1 asset + compressed exclude2-main.js.br 14.6 KiB [emitted] + compressed exclude2-main.js.gz 14.6 KiB [emitted] asset exclude2-chunk_js.js 1.11 KiB [emitted] hidden assets 290 bytes 1 asset compressed exclude2-chunk_js.js.br 1.11 KiB [emitted] @@ -2372,13 +2357,13 @@ exclude2: exclude3: hidden assets 1.18 KiB 2 assets - assets by status 13.3 KiB [emitted] - asset exclude3-main.js 13.3 KiB [emitted] (name: main) - compressed exclude3-main.js.br 13.3 KiB [emitted] - compressed exclude3-main.js.gz 13.3 KiB [emitted] - sourceMap exclude3-main.js.map 11.3 KiB [emitted] [dev] (auxiliary name: main) - compressed exclude3-main.js.map.br 11.3 KiB [emitted] - compressed exclude3-main.js.map.gz 11.3 KiB [emitted] + assets by status 14.7 KiB [emitted] + asset exclude3-main.js 14.6 KiB [emitted] (name: main) + compressed exclude3-main.js.br 14.6 KiB [emitted] + compressed exclude3-main.js.gz 14.6 KiB [emitted] + sourceMap exclude3-main.js.map 12.6 KiB [emitted] [dev] (auxiliary name: main) + compressed exclude3-main.js.map.br 12.6 KiB [emitted] + compressed exclude3-main.js.map.gz 12.6 KiB [emitted] asset exclude3-main.css 70 bytes [emitted] (name: main) sourceMap exclude3-main.css.map 182 bytes [emitted] [dev] (auxiliary name: main) compressed exclude3-main.css.map.br 182 bytes [emitted] @@ -2442,11 +2427,11 @@ webpack x.x.x compiled successfully" exports[`StatsTestCases should print correct stats for runtime-chunk-integration 1`] = ` "base: - asset without-runtime.js 10.9 KiB [emitted] (name: runtime) + asset without-runtime.js 12.3 KiB [emitted] (name: runtime) asset without-505.js 1.22 KiB [emitted] asset without-main1.js 596 bytes [emitted] (name: main1) - Entrypoint main1 11.5 KiB = without-runtime.js 10.9 KiB without-main1.js 596 bytes - runtime modules 6.6 KiB 8 modules + Entrypoint main1 12.8 KiB = without-runtime.js 12.3 KiB without-main1.js 596 bytes + runtime modules 7.63 KiB 9 modules cacheable modules 126 bytes ./main1.js 66 bytes [built] [code generated] ./b.js 20 bytes [built] [code generated] @@ -2455,15 +2440,15 @@ exports[`StatsTestCases should print correct stats for runtime-chunk-integration base (webpack x.x.x) compiled successfully static custom name: - asset with-manifest.js 10.9 KiB [emitted] (name: manifest) + asset with-manifest.js 12.3 KiB [emitted] (name: manifest) asset with-505.js 1.22 KiB [emitted] asset with-main1.js 596 bytes [emitted] (name: main1) asset with-main2.js 215 bytes [emitted] (name: main2) asset with-main3.js 215 bytes [emitted] (name: main3) - Entrypoint main1 11.5 KiB = with-manifest.js 10.9 KiB with-main1.js 596 bytes - Entrypoint main2 11.1 KiB = with-manifest.js 10.9 KiB with-main2.js 215 bytes - Entrypoint main3 11.1 KiB = with-manifest.js 10.9 KiB with-main3.js 215 bytes - runtime modules 6.59 KiB 8 modules + Entrypoint main1 12.8 KiB = with-manifest.js 12.3 KiB with-main1.js 596 bytes + Entrypoint main2 12.5 KiB = with-manifest.js 12.3 KiB with-main2.js 215 bytes + Entrypoint main3 12.5 KiB = with-manifest.js 12.3 KiB with-main3.js 215 bytes + runtime modules 7.63 KiB 9 modules cacheable modules 166 bytes ./main1.js 66 bytes [built] [code generated] ./main2.js 20 bytes [built] [code generated] @@ -2474,16 +2459,16 @@ static custom name: static custom name (webpack x.x.x) compiled successfully dynamic custom name: - asset func-b.js 10.9 KiB [emitted] (name: b) + asset func-b.js 12.3 KiB [emitted] (name: b) asset func-a.js 5.09 KiB [emitted] (name: a) asset func-505.js 1.22 KiB [emitted] asset func-main1.js 596 bytes [emitted] (name: main1) asset func-main2.js 215 bytes [emitted] (name: main2) asset func-main3.js 215 bytes [emitted] (name: main3) - Entrypoint main1 11.5 KiB = func-b.js 10.9 KiB func-main1.js 596 bytes - Entrypoint main2 11.1 KiB = func-b.js 10.9 KiB func-main2.js 215 bytes + Entrypoint main1 12.8 KiB = func-b.js 12.3 KiB func-main1.js 596 bytes + Entrypoint main2 12.5 KiB = func-b.js 12.3 KiB func-main2.js 215 bytes Entrypoint main3 5.3 KiB = func-a.js 5.09 KiB func-main3.js 215 bytes - runtime modules 9.16 KiB 10 modules + runtime modules 10.2 KiB 11 modules cacheable modules 166 bytes ./main1.js 66 bytes [built] [code generated] ./main2.js 20 bytes [built] [code generated] @@ -2508,16 +2493,16 @@ webpack x.x.x compiled successfully" exports[`StatsTestCases should print correct stats for runtime-specific-used-exports 1`] = ` "production: - asset production-a.js 11.5 KiB [emitted] (name: a) - asset production-b.js 11.5 KiB [emitted] (name: b) + asset production-a.js 12.8 KiB [emitted] (name: a) + asset production-b.js 12.8 KiB [emitted] (name: b) asset production-dw_js-_a6170.js 1.16 KiB [emitted] asset production-dw_js-_a6171.js 1.16 KiB [emitted] asset production-dx_js.js 1.16 KiB [emitted] asset production-dy_js.js 1.14 KiB [emitted] asset production-dz_js.js 1.14 KiB [emitted] asset production-c.js 63 bytes [emitted] (name: c) - chunk (runtime: a) production-a.js (a) 605 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] - runtime modules 5.42 KiB 8 modules + chunk (runtime: a) production-a.js (a) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./a.js 261 bytes [built] [code generated] [no exports used] @@ -2529,8 +2514,8 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp [only some exports used: x] ./reexport.js 37 bytes [dependent] [built] [code generated] [only some exports used: x] - chunk (runtime: b) production-b.js (b) 605 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] - runtime modules 5.42 KiB 8 modules + chunk (runtime: b) production-b.js (b) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./b.js 261 bytes [built] [code generated] [no exports used] @@ -2565,7 +2550,7 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp ./dz.js 46 bytes [built] [code generated] ./module.js?chunk 122 bytes [dependent] [built] [code generated] [only some exports used: identity, w, x, z] - runtime modules 10.8 KiB 16 modules + runtime modules 12.9 KiB 18 modules cacheable modules 1.15 KiB ./a.js 261 bytes [built] [code generated] [no exports used] @@ -2590,15 +2575,15 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp production (webpack x.x.x) compiled successfully in X ms development: - asset development-a.js 16.8 KiB [emitted] (name: a) - asset development-b.js 16.8 KiB [emitted] (name: b) + asset development-a.js 18.1 KiB [emitted] (name: a) + asset development-b.js 18.1 KiB [emitted] (name: b) asset development-dw_js.js 3.15 KiB [emitted] asset development-dx_js.js 3.15 KiB [emitted] asset development-dy_js.js 3.15 KiB [emitted] asset development-dz_js.js 3.15 KiB [emitted] asset development-c.js 806 bytes [emitted] (name: c) - chunk development-a.js (a) 605 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] - runtime modules 5.42 KiB 8 modules + chunk development-a.js (a) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./a.js 261 bytes [built] [code generated] [used exports unknown] @@ -2610,8 +2595,8 @@ development: [used exports unknown] ./reexport.js 37 bytes [dependent] [built] [code generated] [used exports unknown] - chunk development-b.js (b) 605 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] - runtime modules 5.42 KiB 8 modules + chunk development-b.js (b) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./b.js 261 bytes [built] [code generated] [used exports unknown] @@ -2646,7 +2631,7 @@ development: [used exports unknown] ./module.js?chunk 122 bytes [dependent] [built] [code generated] [used exports unknown] - runtime modules 10.8 KiB 16 modules + runtime modules 12.9 KiB 18 modules cacheable modules 1.15 KiB ./a.js 261 bytes [built] [code generated] [used exports unknown] @@ -2675,15 +2660,15 @@ development: development (webpack x.x.x) compiled successfully in X ms global: - asset global-a.js 11.7 KiB [emitted] (name: a) - asset global-b.js 11.7 KiB [emitted] (name: b) + asset global-a.js 13 KiB [emitted] (name: a) + asset global-b.js 13 KiB [emitted] (name: b) asset global-dw_js.js 1.16 KiB [emitted] asset global-dx_js.js 1.16 KiB [emitted] asset global-dy_js.js 1.16 KiB [emitted] asset global-dz_js.js 1.16 KiB [emitted] asset global-c.js 63 bytes [emitted] (name: c) - chunk global-a.js (a) 605 bytes (javascript) 5.41 KiB (runtime) [entry] [rendered] - runtime modules 5.41 KiB 8 modules + chunk global-a.js (a) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./a.js 261 bytes [built] [code generated] [no exports used] @@ -2695,8 +2680,8 @@ global: [only some exports used: x, y] ./reexport.js 37 bytes [dependent] [built] [code generated] [only some exports used: x, y] - chunk global-b.js (b) 605 bytes (javascript) 5.41 KiB (runtime) [entry] [rendered] - runtime modules 5.41 KiB 8 modules + chunk global-b.js (b) 605 bytes (javascript) 6.45 KiB (runtime) [entry] [rendered] + runtime modules 6.45 KiB 9 modules cacheable modules 605 bytes ./b.js 261 bytes [built] [code generated] [no exports used] @@ -2727,7 +2712,7 @@ global: ./dz.js 46 bytes [built] [code generated] ./module.js?chunk 122 bytes [dependent] [built] [code generated] [only some exports used: identity, w, x, y, z] - runtime modules 10.8 KiB 16 modules + runtime modules 12.9 KiB 18 modules cacheable modules 1.15 KiB ./a.js 261 bytes [built] [code generated] [no exports used] @@ -2753,40 +2738,23 @@ global: `; exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` -"runtime modules 5.67 KiB 9 modules -cacheable modules 573 bytes - code generated modules 488 bytes [code generated] - ./index.js 150 bytes [built] [code generated] - ModuleConcatenation bailout: Cannot concat with ./cjs.js: Module is not an ECMAScript module - ModuleConcatenation bailout: Cannot concat with ./entry.js: Module is an entry point - ModuleConcatenation bailout: Cannot concat with ./eval.js: Module uses eval() - ModuleConcatenation bailout: Cannot concat with ./module-id.js: Module uses module.id - ModuleConcatenation bailout: Cannot concat with ./module-loaded.js: Module uses module.loaded - ModuleConcatenation bailout: Cannot concat with ./ref-from-cjs.js: Module ./ref-from-cjs.js is referenced from these modules with unsupported syntax: ./cjs.js (referenced with cjs require) - ./entry.js 32 bytes [built] [code generated] - ./cjs.js 59 bytes [built] [code generated] - CommonJS bailout: module.exports is used directly at 3:0-14 - ModuleConcatenation bailout: Module is not an ECMAScript module - ./ref-from-cjs.js 45 bytes [built] [code generated] - ./eval.js 35 bytes [built] [code generated] - ModuleConcatenation bailout: Module uses eval() - ./module-id.js 26 bytes [built] [code generated] - ModuleConcatenation bailout: Module uses module.id - ./module-loaded.js 30 bytes [built] [code generated] - ModuleConcatenation bailout: Module uses module.loaded +"runtime modules 6.71 KiB 10 modules +built modules 615 bytes [built] + code generated modules 530 bytes [code generated] + modules by path ./*.js 377 bytes 7 modules ./concatenated.js + 2 modules 111 bytes [built] [code generated] ModuleConcatenation bailout: Cannot concat with external \\"external\\": Module external \\"external\\" is not in the same chunk(s) (expected in chunk(s) unnamed chunk(s), module is in chunk(s) index) + external \\"external\\" 42 bytes [built] [code generated] orphan modules 85 bytes [orphan] ./concatenated1.js 37 bytes [orphan] [built] ./concatenated2.js 48 bytes [orphan] [built] -external \\"external\\" 42 bytes [built] [code generated] webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for scope-hoisting-multi 1`] = ` -"Entrypoint first 11.7 KiB = a-vendor.js 205 bytes a-first.js 11.5 KiB -Entrypoint second 11.5 KiB = a-vendor.js 205 bytes a-second.js 11.3 KiB -runtime modules 12.7 KiB 14 modules +"Entrypoint first 13.1 KiB = a-vendor.js 205 bytes a-first.js 12.9 KiB +Entrypoint second 12.9 KiB = a-vendor.js 205 bytes a-second.js 12.7 KiB +runtime modules 14.8 KiB 16 modules cacheable modules 693 bytes ./first.js 207 bytes [built] [code generated] ./second.js 177 bytes [built] [code generated] @@ -2801,9 +2769,9 @@ cacheable modules 693 bytes ./common_lazy_shared.js 25 bytes [built] [code generated] webpack x.x.x compiled successfully in X ms -Entrypoint first 11.3 KiB = b-vendor.js 205 bytes b-first.js 11.1 KiB -Entrypoint second 11.2 KiB = b-vendor.js 205 bytes b-second.js 11 KiB -runtime modules 12.7 KiB 14 modules +Entrypoint first 12.7 KiB = b-vendor.js 205 bytes b-first.js 12.5 KiB +Entrypoint second 12.6 KiB = b-vendor.js 205 bytes b-second.js 12.4 KiB +runtime modules 14.8 KiB 16 modules cacheable modules 898 bytes code generated modules 780 bytes [code generated] modules by path ./*.js 81 bytes 3 modules @@ -2825,9 +2793,9 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for side-effects-issue-7428 1`] = ` -"asset main.js 10.7 KiB [emitted] (name: main) +"asset main.js 12 KiB [emitted] (name: main) asset 1.js 638 bytes [emitted] -runtime modules 5.4 KiB 8 modules +runtime modules 6.44 KiB 9 modules cacheable modules 823 bytes modules by path ./components/src/ 501 bytes orphan modules 315 bytes [orphan] @@ -2986,7 +2954,7 @@ webpack x.x.x compiled successfully in X ms" `; exports[`StatsTestCases should print correct stats for simple-more-info 1`] = ` -"PublicPath: (none) +"PublicPath: auto asset bundle.js 54 bytes [emitted] (name: main) ./index.js 1 bytes [built] [code generated] entry ./index main @@ -2996,8 +2964,8 @@ webpack x.x.x compiled successfully in X ms" exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` "default: - Entrypoint main 9.93 KiB = default/main.js - Entrypoint a 10.2 KiB = default/a.js + Entrypoint main 11.3 KiB = default/main.js + Entrypoint a 11.6 KiB = default/a.js Entrypoint b 1.96 KiB = default/b.js Entrypoint c 1.96 KiB = default/c.js chunk (runtime: b) default/b.js (b) 152 bytes [entry] [rendered] @@ -3007,9 +2975,9 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk (runtime: a, main) default/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 5.49 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 6.53 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main - runtime modules 5.49 KiB 8 modules + runtime modules 6.53 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) default/282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={568}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -3039,9 +3007,9 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk (runtime: main) default/769.js (id hint: vendors) 20 bytes <{179}> ={282}= ={383}= ={568}= ={767}= [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) default/a.js (a) 201 bytes (javascript) 5.48 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk (runtime: a) default/a.js (a) 201 bytes (javascript) 6.52 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a - runtime modules 5.48 KiB 8 modules + runtime modules 6.52 KiB 9 modules dependent modules 60 bytes [dependent] 3 modules ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) default/async-a.js (async-a) 141 bytes <{179}> ={282}= ={767}= ={954}= >{137}< >{568}< [rendered] @@ -3054,8 +3022,8 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` default (webpack x.x.x) compiled successfully all-chunks: - Entrypoint main 9.96 KiB = all-chunks/main.js - Entrypoint a 12.4 KiB = all-chunks/282.js 200 bytes all-chunks/954.js 200 bytes all-chunks/767.js 200 bytes all-chunks/390.js 200 bytes all-chunks/a.js 11.6 KiB + Entrypoint main 11.3 KiB = all-chunks/main.js + Entrypoint a 13.8 KiB = all-chunks/282.js 200 bytes all-chunks/954.js 200 bytes all-chunks/767.js 200 bytes all-chunks/390.js 200 bytes all-chunks/a.js 13 KiB Entrypoint b 6.45 KiB = all-chunks/282.js 200 bytes all-chunks/954.js 200 bytes all-chunks/767.js 200 bytes all-chunks/568.js 200 bytes all-chunks/b.js 5.67 KiB Entrypoint c 6.45 KiB = all-chunks/282.js 200 bytes all-chunks/769.js 200 bytes all-chunks/767.js 200 bytes all-chunks/568.js 200 bytes all-chunks/c.js 5.67 KiB chunk (runtime: b) all-chunks/b.js (b) 72 bytes (javascript) 2.6 KiB (runtime) ={282}= ={568}= ={767}= ={954}= [entry] [rendered] @@ -3065,9 +3033,9 @@ all-chunks: chunk (runtime: a, main) all-chunks/async-g.js (async-g) 34 bytes <{282}> <{390}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) all-chunks/main.js (main) 147 bytes (javascript) 5.49 KiB (runtime) >{282}< >{334}< >{383}< >{390}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk (runtime: main) all-chunks/main.js (main) 147 bytes (javascript) 6.54 KiB (runtime) >{282}< >{334}< >{383}< >{390}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main - runtime modules 5.49 KiB 8 modules + runtime modules 6.54 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: a, b, c, main) all-chunks/282.js (id hint: vendors) 20 bytes <{179}> ={128}= ={334}= ={383}= ={390}= ={459}= ={568}= ={767}= ={769}= ={786}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -3110,9 +3078,9 @@ all-chunks: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) all-chunks/a.js (a) 121 bytes (javascript) 6.66 KiB (runtime) ={282}= ={390}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] + chunk (runtime: a) all-chunks/a.js (a) 121 bytes (javascript) 7.71 KiB (runtime) ={282}= ={390}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a a - runtime modules 6.66 KiB 8 modules + runtime modules 7.71 KiB 9 modules ./a.js 121 bytes [built] [code generated] chunk (runtime: main) all-chunks/async-a.js (async-a) 121 bytes <{179}> ={282}= ={390}= ={767}= ={954}= >{137}< >{568}< [rendered] > ./a ./index.js 1:0-47 @@ -3126,8 +3094,8 @@ all-chunks: all-chunks (webpack x.x.x) compiled successfully manual: - Entrypoint main 9.71 KiB = manual/main.js - Entrypoint a 12.2 KiB = manual/vendors.js 460 bytes manual/a.js 11.7 KiB + Entrypoint main 11.1 KiB = manual/main.js + Entrypoint a 13.5 KiB = manual/vendors.js 460 bytes manual/a.js 13.1 KiB Entrypoint b 6.4 KiB = manual/vendors.js 460 bytes manual/b.js 5.96 KiB Entrypoint c 6.4 KiB = manual/vendors.js 460 bytes manual/c.js 5.96 KiB chunk (runtime: b) manual/b.js (b) 112 bytes (javascript) 2.62 KiB (runtime) ={216}= [entry] [rendered] @@ -3142,9 +3110,9 @@ manual: > ./g ./a.js 6:0-47 dependent modules 20 bytes [dependent] 1 module ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) manual/main.js (main) 147 bytes (javascript) 5.49 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk (runtime: main) manual/main.js (main) 147 bytes (javascript) 6.54 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main - runtime modules 5.49 KiB 8 modules + runtime modules 6.54 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: a, b, c, main) manual/vendors.js (vendors) (id hint: vendors) 60 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={786}= ={794}= >{137}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a ./index.js 1:0-47 @@ -3181,12 +3149,12 @@ manual: dependent modules 40 bytes [dependent] 2 modules runtime modules 2.62 KiB 2 modules ./c.js 72 bytes [built] [code generated] - chunk (runtime: a) manual/a.js (a) 161 bytes (javascript) 6.65 KiB (runtime) ={216}= >{137}< [entry] [rendered] + chunk (runtime: a) manual/a.js (a) 161 bytes (javascript) 7.7 KiB (runtime) ={216}= >{137}< [entry] [rendered] > ./a a > x a > y a > z a - runtime modules 6.65 KiB 8 modules + runtime modules 7.7 KiB 9 modules dependent modules 20 bytes [dependent] 1 module ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) manual/async-a.js (async-a) 161 bytes <{179}> ={216}= >{137}< [rendered] @@ -3196,16 +3164,16 @@ manual: manual (webpack x.x.x) compiled successfully name-too-long: - Entrypoint main 9.96 KiB = name-too-long/main.js - Entrypoint aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 12.4 KiB = name-too-long/282.js 200 bytes name-too-long/954.js 200 bytes name-too-long/767.js 200 bytes name-too-long/390.js 200 bytes name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js 11.7 KiB + Entrypoint main 11.3 KiB = name-too-long/main.js + Entrypoint aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 13.8 KiB = name-too-long/282.js 200 bytes name-too-long/954.js 200 bytes name-too-long/767.js 200 bytes name-too-long/390.js 200 bytes name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js 13 KiB Entrypoint bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 6.45 KiB = name-too-long/282.js 200 bytes name-too-long/954.js 200 bytes name-too-long/767.js 200 bytes name-too-long/568.js 200 bytes name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js 5.67 KiB Entrypoint cccccccccccccccccccccccccccccc 6.45 KiB = name-too-long/282.js 200 bytes name-too-long/769.js 200 bytes name-too-long/767.js 200 bytes name-too-long/568.js 200 bytes name-too-long/cccccccccccccccccccccccccccccc.js 5.67 KiB chunk (runtime: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, main) name-too-long/async-g.js (async-g) 34 bytes <{282}> <{390}> <{751}> <{767}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) name-too-long/main.js (main) 147 bytes (javascript) 5.5 KiB (runtime) >{282}< >{334}< >{383}< >{390}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk (runtime: main) name-too-long/main.js (main) 147 bytes (javascript) 6.54 KiB (runtime) >{282}< >{334}< >{383}< >{390}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main - runtime modules 5.5 KiB 8 modules + runtime modules 6.54 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, cccccccccccccccccccccccccccccc, main) name-too-long/282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={390}= ={568}= ={658}= ={751}= ={766}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -3236,9 +3204,9 @@ name-too-long: > ./c cccccccccccccccccccccccccccccc runtime modules 2.6 KiB 2 modules ./c.js 72 bytes [built] [code generated] - chunk (runtime: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 121 bytes (javascript) 6.67 KiB (runtime) ={282}= ={390}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] + chunk (runtime: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 121 bytes (javascript) 7.71 KiB (runtime) ={282}= ={390}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - runtime modules 6.67 KiB 8 modules + runtime modules 7.71 KiB 9 modules ./a.js 121 bytes [built] [code generated] chunk (runtime: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 72 bytes (javascript) 2.6 KiB (runtime) ={282}= ={568}= ={767}= ={954}= [entry] [rendered] > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb @@ -3268,8 +3236,8 @@ name-too-long: name-too-long (webpack x.x.x) compiled successfully custom-chunks-filter: - Entrypoint main 9.94 KiB = custom-chunks-filter/main.js - Entrypoint a 10.2 KiB = custom-chunks-filter/a.js + Entrypoint main 11.3 KiB = custom-chunks-filter/main.js + Entrypoint a 11.6 KiB = custom-chunks-filter/a.js Entrypoint b 6.45 KiB = custom-chunks-filter/282.js 200 bytes custom-chunks-filter/954.js 200 bytes custom-chunks-filter/568.js 200 bytes custom-chunks-filter/767.js 200 bytes custom-chunks-filter/b.js 5.67 KiB Entrypoint c 6.45 KiB = custom-chunks-filter/282.js 200 bytes custom-chunks-filter/769.js 200 bytes custom-chunks-filter/568.js 200 bytes custom-chunks-filter/767.js 200 bytes custom-chunks-filter/c.js 5.67 KiB chunk (runtime: b) custom-chunks-filter/b.js (b) 72 bytes (javascript) 2.6 KiB (runtime) ={282}= ={568}= ={767}= ={954}= [entry] [rendered] @@ -3279,9 +3247,9 @@ custom-chunks-filter: chunk (runtime: a, main) custom-chunks-filter/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] [code generated] - chunk (runtime: main) custom-chunks-filter/main.js (main) 147 bytes (javascript) 5.5 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk (runtime: main) custom-chunks-filter/main.js (main) 147 bytes (javascript) 6.55 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main - runtime modules 5.5 KiB 8 modules + runtime modules 6.55 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: b, c, main) custom-chunks-filter/282.js (id hint: vendors) 20 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={568}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -3318,9 +3286,9 @@ custom-chunks-filter: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: a) custom-chunks-filter/a.js (a) 201 bytes (javascript) 5.49 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk (runtime: a) custom-chunks-filter/a.js (a) 201 bytes (javascript) 6.54 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a - runtime modules 5.49 KiB 8 modules + runtime modules 6.54 KiB 9 modules dependent modules 60 bytes [dependent] 3 modules ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) custom-chunks-filter/async-a.js (async-a) 141 bytes <{179}> ={282}= ={767}= ={954}= >{137}< >{568}< [rendered] @@ -3334,8 +3302,8 @@ custom-chunks-filter: custom-chunks-filter (webpack x.x.x) compiled successfully custom-chunks-filter-in-cache-groups: - Entrypoint main 9.74 KiB = custom-chunks-filter-in-cache-groups/main.js - Entrypoint a 12.2 KiB = custom-chunks-filter-in-cache-groups/176.js 464 bytes custom-chunks-filter-in-cache-groups/a.js 11.8 KiB + Entrypoint main 11.1 KiB = custom-chunks-filter-in-cache-groups/main.js + Entrypoint a 13.6 KiB = custom-chunks-filter-in-cache-groups/176.js 464 bytes custom-chunks-filter-in-cache-groups/a.js 13.1 KiB Entrypoint b 6.41 KiB = custom-chunks-filter-in-cache-groups/vendors.js 464 bytes custom-chunks-filter-in-cache-groups/b.js 5.96 KiB Entrypoint c 6.41 KiB = custom-chunks-filter-in-cache-groups/vendors.js 464 bytes custom-chunks-filter-in-cache-groups/c.js 5.96 KiB chunk (runtime: b) custom-chunks-filter-in-cache-groups/b.js (b) 112 bytes (javascript) 2.62 KiB (runtime) ={216}= [entry] [rendered] @@ -3358,9 +3326,9 @@ custom-chunks-filter-in-cache-groups: ./node_modules/x.js 20 bytes [built] [code generated] ./node_modules/y.js 20 bytes [built] [code generated] ./node_modules/z.js 20 bytes [built] [code generated] - chunk (runtime: main) custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 5.52 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk (runtime: main) custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 6.57 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main - runtime modules 5.52 KiB 8 modules + runtime modules 6.57 KiB 9 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: b, c, main) custom-chunks-filter-in-cache-groups/vendors.js (vendors) (id hint: vendors) 60 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={794}= >{137}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a ./index.js 1:0-47 @@ -3393,12 +3361,12 @@ custom-chunks-filter-in-cache-groups: dependent modules 40 bytes [dependent] 2 modules runtime modules 2.62 KiB 2 modules ./c.js 72 bytes [built] [code generated] - chunk (runtime: a) custom-chunks-filter-in-cache-groups/a.js (a) 161 bytes (javascript) 6.68 KiB (runtime) ={176}= >{137}< [entry] [rendered] + chunk (runtime: a) custom-chunks-filter-in-cache-groups/a.js (a) 161 bytes (javascript) 7.73 KiB (runtime) ={176}= >{137}< [entry] [rendered] > ./a a > x a > y a > z a - runtime modules 6.68 KiB 8 modules + runtime modules 7.73 KiB 9 modules dependent modules 20 bytes [dependent] 1 module ./a.js + 1 modules 141 bytes [built] [code generated] chunk (runtime: main) custom-chunks-filter-in-cache-groups/async-a.js (async-a) 161 bytes <{179}> ={216}= >{137}< [rendered] @@ -3409,7 +3377,7 @@ custom-chunks-filter-in-cache-groups: `; exports[`StatsTestCases should print correct stats for split-chunks-automatic-name 1`] = ` -"Entrypoint main 10 KiB = main.js +"Entrypoint main 11.4 KiB = main.js chunk (runtime: main) async-a.js (async-a) 92 bytes <{main}> ={common-d_js}= ={common-node_modules_x_js}= ={common-node_modules_y_js}= [rendered] > ./a ./index.js 1:0-47 ./a.js + 1 modules 92 bytes [built] [code generated] @@ -3440,18 +3408,18 @@ chunk (runtime: main) common-node_modules_y_js.js (id hint: common) 20 bytes <{m chunk (runtime: main) common-node_modules_z_js.js (id hint: common) 20 bytes <{main}> ={async-c}= ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= [rendered] split chunk (cache group: b) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] [code generated] -chunk (runtime: main) main.js (main) 147 bytes (javascript) 5.41 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] +chunk (runtime: main) main.js (main) 147 bytes (javascript) 6.44 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] > ./ main - runtime modules 5.41 KiB 8 modules + runtime modules 6.44 KiB 9 modules ./index.js 147 bytes [built] [code generated] production (webpack x.x.x) compiled successfully" `; exports[`StatsTestCases should print correct stats for split-chunks-chunk-name 1`] = ` -"Entrypoint main 9.67 KiB = default/main.js -chunk (runtime: main) default/main.js (main) 192 bytes (javascript) 5.46 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] +"Entrypoint main 11 KiB = default/main.js +chunk (runtime: main) default/main.js (main) 192 bytes (javascript) 6.51 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] > ./ main - runtime modules 5.46 KiB 8 modules + runtime modules 6.51 KiB 9 modules ./index.js 192 bytes [built] [code generated] chunk (runtime: main) default/async-b.js (async-b) (id hint: vendors) 122 bytes <{179}> [rendered] reused as split chunk (cache group: defaultVendors) > b ./index.js 2:0-45 @@ -3467,7 +3435,7 @@ webpack x.x.x compiled successfully" `; exports[`StatsTestCases should print correct stats for split-chunks-combinations 1`] = ` -"Entrypoint main 10.6 KiB = main.js +"Entrypoint main 11.9 KiB = main.js chunk (runtime: main) async-d.js (async-d) 101 bytes <{179}> [rendered] > ./d ./index.js 4:0-47 dependent modules 67 bytes [dependent] 1 module @@ -3476,9 +3444,9 @@ chunk (runtime: main) async-g.js (async-g) 101 bytes <{179}> [rendered] > ./g ./index.js 7:0-47 dependent modules 67 bytes [dependent] 1 module ./g.js 34 bytes [built] [code generated] -chunk (runtime: main) main.js (main) 343 bytes (javascript) 5.79 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] +chunk (runtime: main) main.js (main) 343 bytes (javascript) 6.82 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] > ./ main - runtime modules 5.79 KiB 9 modules + runtime modules 6.82 KiB 10 modules ./index.js 343 bytes [built] [code generated] chunk (runtime: main) async-f.js (async-f) 101 bytes <{179}> [rendered] > ./f ./index.js 6:0-47 @@ -3507,10 +3475,10 @@ webpack x.x.x compiled successfully" `; exports[`StatsTestCases should print correct stats for split-chunks-issue-6413 1`] = ` -"Entrypoint main 9.28 KiB = main.js -chunk (runtime: main) main.js (main) 147 bytes (javascript) 5.17 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] +"Entrypoint main 10.6 KiB = main.js +chunk (runtime: main) main.js (main) 147 bytes (javascript) 6.2 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] > ./ main - runtime modules 5.17 KiB 7 modules + runtime modules 6.2 KiB 8 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) 282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={543}= ={794}= [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 @@ -3535,10 +3503,10 @@ default (webpack x.x.x) compiled successfully" `; exports[`StatsTestCases should print correct stats for split-chunks-issue-6696 1`] = ` -"Entrypoint main 11.1 KiB = vendors.js 200 bytes main.js 10.9 KiB -chunk (runtime: main) main.js (main) 110 bytes (javascript) 6.33 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] +"Entrypoint main 12.4 KiB = vendors.js 200 bytes main.js 12.2 KiB +chunk (runtime: main) main.js (main) 110 bytes (javascript) 7.37 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] > ./ main - runtime modules 6.33 KiB 7 modules + runtime modules 7.37 KiB 8 modules ./index.js 110 bytes [built] [code generated] chunk (runtime: main) vendors.js (vendors) (id hint: vendors) 20 bytes ={179}= >{334}< >{794}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./ main @@ -3556,11 +3524,11 @@ default (webpack x.x.x) compiled successfully" exports[`StatsTestCases should print correct stats for split-chunks-issue-7401 1`] = ` "Entrypoint a 5.51 KiB = 282.js 200 bytes a.js 5.32 KiB -Entrypoint b 8.86 KiB = b.js +Entrypoint b 10.2 KiB = b.js Chunk Group c 518 bytes = 282.js 200 bytes c.js 318 bytes -chunk (runtime: b) b.js (b) 43 bytes (javascript) 5.13 KiB (runtime) >{282}< >{459}< [entry] [rendered] +chunk (runtime: b) b.js (b) 43 bytes (javascript) 6.17 KiB (runtime) >{282}< >{459}< [entry] [rendered] > ./b b - runtime modules 5.13 KiB 7 modules + runtime modules 6.17 KiB 8 modules ./b.js 43 bytes [built] [code generated] chunk (runtime: a, b) 282.js (id hint: vendors) 20 bytes <{128}> ={459}= ={786}= [initial] [rendered] split chunk (cache group: defaultVendors) > ./c ./b.js 1:0-41 @@ -3577,13 +3545,13 @@ default (webpack x.x.x) compiled successfully" `; exports[`StatsTestCases should print correct stats for split-chunks-keep-remaining-size 1`] = ` -"Entrypoint main 10.3 KiB = default/main.js +"Entrypoint main 11.6 KiB = default/main.js chunk (runtime: main) default/async-d.js (async-d) 58 bytes <{179}> ={782}= [rendered] > ./d ./index.js 4:0-47 ./d.js 58 bytes [built] [code generated] -chunk (runtime: main) default/main.js (main) 196 bytes (javascript) 5.75 KiB (runtime) >{31}< >{334}< >{383}< >{782}< >{794}< >{821}< [entry] [rendered] +chunk (runtime: main) default/main.js (main) 196 bytes (javascript) 6.79 KiB (runtime) >{31}< >{334}< >{383}< >{782}< >{794}< >{821}< [entry] [rendered] > ./ main - runtime modules 5.75 KiB 9 modules + runtime modules 6.79 KiB 10 modules ./index.js 196 bytes [built] [code generated] chunk (runtime: main) default/async-b.js (async-b) 39 bytes <{179}> ={821}= [rendered] > ./b ./index.js 2:0-47 @@ -3889,10 +3857,10 @@ zero-min: zero-min (webpack x.x.x) compiled successfully max-async-size: - Entrypoint main 14.3 KiB = max-async-size-main.js - chunk (runtime: main) max-async-size-main.js (main) 2.47 KiB (javascript) 5.78 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] + Entrypoint main 15.7 KiB = max-async-size-main.js + chunk (runtime: main) max-async-size-main.js (main) 2.47 KiB (javascript) 6.81 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] > ./async main - runtime modules 5.78 KiB 9 modules + runtime modules 6.81 KiB 10 modules dependent modules 2.09 KiB [dependent] 6 modules ./async/index.js 386 bytes [built] [code generated] chunk (runtime: main) max-async-size-async-b-77a8c116.js (async-b-77a8c116) 1.57 KiB <{179}> ={385}= ={820}= ={920}= [rendered] @@ -3996,15 +3964,15 @@ enforce-min-size: `; exports[`StatsTestCases should print correct stats for split-chunks-prefer-bigger-splits 1`] = ` -"Entrypoint main 10.1 KiB = default/main.js +"Entrypoint main 11.5 KiB = default/main.js chunk (runtime: main) default/118.js 110 bytes <{179}> ={334}= ={383}= [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 > ./c ./index.js 3:0-47 ./d.js 43 bytes [built] [code generated] ./f.js 67 bytes [built] [code generated] -chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 5.73 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] +chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 6.78 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main - runtime modules 5.73 KiB 9 modules + runtime modules 6.78 KiB 10 modules ./index.js 147 bytes [built] [code generated] chunk (runtime: main) default/async-b.js (async-b) 105 bytes <{179}> ={118}= [rendered] > ./b ./index.js 2:0-47 @@ -4125,8 +4093,8 @@ webpack x.x.x compiled with 1 warning in X ms" `; exports[`StatsTestCases should print correct stats for wasm-explorer-examples-sync 1`] = ` -"assets by path *.js 16.8 KiB - asset bundle.js 11.7 KiB [emitted] (name: main) +"assets by path *.js 18.2 KiB + asset bundle.js 13 KiB [emitted] (name: main) asset 325.bundle.js 3.78 KiB [emitted] asset 780.bundle.js 569 bytes [emitted] asset 526.bundle.js 364 bytes [emitted] (id hint: vendors) @@ -4141,8 +4109,8 @@ assets by path *.wasm 1.37 KiB asset 71ba3c2b7af4ee0e4b5c.module.wasm 120 bytes [emitted] [immutable] chunk (runtime: main) 99.bundle.js 50 bytes (javascript) 531 bytes (webassembly) [rendered] ./duff.wasm 50 bytes (javascript) 531 bytes (webassembly) [built] [code generated] -chunk (runtime: main) bundle.js (main) 586 bytes (javascript) 5.92 KiB (runtime) [entry] [rendered] - runtime modules 5.92 KiB 9 modules +chunk (runtime: main) bundle.js (main) 586 bytes (javascript) 6.96 KiB (runtime) [entry] [rendered] + runtime modules 6.96 KiB 10 modules ./index.js 586 bytes [built] [code generated] chunk (runtime: main) 230.bundle.js 50 bytes (javascript) 156 bytes (webassembly) [rendered] ./Q_rsqrt.wasm 50 bytes (javascript) 156 bytes (webassembly) [built] [code generated] @@ -4155,7 +4123,7 @@ chunk (runtime: main) 526.bundle.js (id hint: vendors) 34 bytes [rendered] split chunk (runtime: main) 780.bundle.js 110 bytes (javascript) 444 bytes (webassembly) [rendered] ./fact.wasm 50 bytes (javascript) 154 bytes (webassembly) [built] [code generated] ./fast-math.wasm 60 bytes (javascript) 290 bytes (webassembly) [built] [code generated] -runtime modules 5.92 KiB 9 modules +runtime modules 6.96 KiB 10 modules cacheable modules 2.31 KiB (javascript) 1.37 KiB (webassembly) webassembly modules 310 bytes (javascript) 1.37 KiB (webassembly) ./Q_rsqrt.wasm 50 bytes (javascript) 156 bytes (webassembly) [built] [code generated] diff --git a/test/configCases/asset-url/target-webworker1/webpack.config.js b/test/configCases/asset-url/target-webworker1/webpack.config.js index 5182520e7..146b9da9c 100644 --- a/test/configCases/asset-url/target-webworker1/webpack.config.js +++ b/test/configCases/asset-url/target-webworker1/webpack.config.js @@ -5,6 +5,7 @@ module.exports = { devtool: false, output: { filename: "deep/path/[name].js", - assetModuleFilename: "[path][name][ext]" + assetModuleFilename: "[path][name][ext]", + publicPath: "" } }; diff --git a/test/configCases/output/publicPath-node/asset.jpg b/test/configCases/output/publicPath-node/asset.jpg new file mode 100644 index 000000000..e69de29bb diff --git a/test/configCases/output/publicPath-node/index.js b/test/configCases/output/publicPath-node/index.js new file mode 100644 index 000000000..9c6c55518 --- /dev/null +++ b/test/configCases/output/publicPath-node/index.js @@ -0,0 +1,5 @@ +import asset from "./asset.jpg"; + +it("should define public path", () => { + expect(asset).toBe("asset.jpg"); +}); diff --git a/test/configCases/output/publicPath-node/webpack.config.js b/test/configCases/output/publicPath-node/webpack.config.js new file mode 100644 index 000000000..546fe977d --- /dev/null +++ b/test/configCases/output/publicPath-node/webpack.config.js @@ -0,0 +1,16 @@ +/** @type {import("../../../../").Configuration} */ +module.exports = { + mode: "none", + target: "node", + output: { + assetModuleFilename: "[name][ext]" + }, + module: { + rules: [ + { + test: /\.jpg$/, + type: "asset/resource" + } + ] + } +}; diff --git a/test/configCases/output/publicPath-scriptType-module/asset.jpg b/test/configCases/output/publicPath-scriptType-module/asset.jpg new file mode 100644 index 000000000..e69de29bb diff --git a/test/configCases/output/publicPath-scriptType-module/index.js b/test/configCases/output/publicPath-scriptType-module/index.js new file mode 100644 index 000000000..b6ab6abf1 --- /dev/null +++ b/test/configCases/output/publicPath-scriptType-module/index.js @@ -0,0 +1,5 @@ +import asset from "./asset.jpg"; + +it("should define public path", () => { + expect(asset).toBe("http://test.co/path/asset.jpg"); +}); diff --git a/test/configCases/output/publicPath-scriptType-module/test.config.js b/test/configCases/output/publicPath-scriptType-module/test.config.js new file mode 100644 index 000000000..1a9ba98e4 --- /dev/null +++ b/test/configCases/output/publicPath-scriptType-module/test.config.js @@ -0,0 +1,10 @@ +module.exports = { + findBundle: function() { + return [ + "./index.mjs" + ]; + }, + moduleScope(scope) { + scope.pseudoImport = { meta: { url: "http://test.co/path/index.js" } }; + } +}; diff --git a/test/configCases/output/publicPath-scriptType-module/webpack.config.js b/test/configCases/output/publicPath-scriptType-module/webpack.config.js new file mode 100644 index 000000000..e5a0a0a57 --- /dev/null +++ b/test/configCases/output/publicPath-scriptType-module/webpack.config.js @@ -0,0 +1,19 @@ +/** @type {import("../../../../").Configuration} */ +module.exports = { + mode: "none", + target: "electron-renderer", + output: { + assetModuleFilename: "[name][ext]", + importMetaName: "pseudoImport.meta", + scriptType: "module", + filename: "index.mjs" + }, + module: { + rules: [ + { + test: /\.jpg$/, + type: "asset/resource" + } + ] + } +}; diff --git a/test/configCases/output/publicPath-web/a.js b/test/configCases/output/publicPath-web/a.js new file mode 100644 index 000000000..c85a615db --- /dev/null +++ b/test/configCases/output/publicPath-web/a.js @@ -0,0 +1,5 @@ +import asset from "./asset.jpg"; + +it("should define public path", () => { + expect(asset).toBe("https://test.cases/path/inner1/inner2/../../asset.jpg"); +}); diff --git a/test/configCases/output/publicPath-web/asset.jpg b/test/configCases/output/publicPath-web/asset.jpg new file mode 100644 index 000000000..e69de29bb diff --git a/test/configCases/output/publicPath-web/b.js b/test/configCases/output/publicPath-web/b.js new file mode 100644 index 000000000..3ccabac4d --- /dev/null +++ b/test/configCases/output/publicPath-web/b.js @@ -0,0 +1,5 @@ +import asset from "./asset.jpg"; + +it("should define public path", () => { + expect(asset).toBe("https://test.cases/path/asset.jpg"); +}); diff --git a/test/configCases/output/publicPath-web/test.config.js b/test/configCases/output/publicPath-web/test.config.js new file mode 100644 index 000000000..53ecdb9cc --- /dev/null +++ b/test/configCases/output/publicPath-web/test.config.js @@ -0,0 +1,8 @@ +module.exports = { + findBundle: function() { + return [ + "./inner1/inner2/a.js", + "./b.js" + ]; + } +}; diff --git a/test/configCases/output/publicPath-web/webpack.config.js b/test/configCases/output/publicPath-web/webpack.config.js new file mode 100644 index 000000000..cdca87ddc --- /dev/null +++ b/test/configCases/output/publicPath-web/webpack.config.js @@ -0,0 +1,25 @@ +/** @type {import("../../../../").Configuration} */ +module.exports = { + mode: "none", + target: "web", + entry() { + return { + a: "./a", + b: "./b" + }; + }, + output: { + filename: data => { + return data.chunk.name === "a" ? `inner1/inner2/[name].js` : "[name].js"; + }, + assetModuleFilename: "[name][ext]" + }, + module: { + rules: [ + { + test: /\.jpg$/, + type: "asset/resource" + } + ] + } +}; diff --git a/test/helpers/CurrentScript.js b/test/helpers/CurrentScript.js new file mode 100644 index 000000000..b198c1b58 --- /dev/null +++ b/test/helpers/CurrentScript.js @@ -0,0 +1,8 @@ +class CurrentScript { + constructor(path = "", type = "text/javascript") { + this.src = `https://test.cases/path/${path}index.js`; + this.type = type; + } +} + +module.exports = CurrentScript; diff --git a/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js b/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js index 7568bd619..cbc6164d5 100644 --- a/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js +++ b/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js @@ -10,6 +10,9 @@ module.exports = { } ] }, + output: { + publicPath: "" + }, target: "web", node: { __dirname: false diff --git a/types.d.ts b/types.d.ts index e3731a0bb..365920cce 100644 --- a/types.d.ts +++ b/types.d.ts @@ -6036,6 +6036,11 @@ declare interface Output { */ importFunctionName?: string; + /** + * The name of the native import.meta object (can be exchanged for a polyfill). + */ + importMetaName?: string; + /** * Make the output files a library, exporting the exports of the entry point. */ @@ -6280,6 +6285,11 @@ declare interface OutputNormalized { */ importFunctionName?: string; + /** + * The name of the native import.meta object (can be exchanged for a polyfill). + */ + importMetaName?: string; + /** * Options for library. */ @@ -7785,6 +7795,7 @@ declare abstract class RuntimeTemplate { supportsBigIntLiteral(): boolean; supportsDynamicImport(): boolean; supportsEcmaScriptModuleSyntax(): boolean; + supportTemplateLiteral(): boolean; returningFunction(returnValue?: any, args?: string): string; basicFunction(args?: any, body?: any): string; destructureArray(items?: any, value?: any): string;