remove size difference for wasm modules because of the additional dependency

This commit is contained in:
Tobias Koppers 2018-12-31 12:36:29 +01:00
parent 9048500acf
commit b2c5f8dc90
2 changed files with 17 additions and 17 deletions

View File

@ -34,7 +34,7 @@ class WebAssemblyJavascriptGenerator extends Generator {
* @returns {number} estimate size of the module
*/
getSize(module, type) {
return 100 + module.dependencies.length * 5;
return 95 + module.dependencies.length * 5;
}
/**

View File

@ -3480,27 +3480,27 @@ Entrypoint main = bundle.js
chunk {73} bundle.js (main-1df31ce3) 586 bytes (javascript) 6.53 KiB (runtime) [entry] [rendered]
[967] ./index.js 586 bytes {73} [built]
+ 7 hidden chunk modules
chunk {147} 147.bundle.js, 52a4420208d65f0d8a54.module.wasm, 4d49250abd149313ea7a.module.wasm 215 bytes (javascript) 444 bytes (webassembly) [rendered]
[412] ./fact.wasm 105 bytes (javascript) 154 bytes (webassembly) {147} [built]
[987] ./fast-math.wasm 110 bytes (javascript) 290 bytes (webassembly) {147} [built]
chunk {286} 286.bundle.js, 2194eba49084ca9f715b.module.wasm 105 bytes (javascript) 156 bytes (webassembly) [rendered]
[286] ./Q_rsqrt.wasm 105 bytes (javascript) 156 bytes (webassembly) {286} [built]
chunk {363} 363.bundle.js, 621a5ff1152e883ce251.module.wasm 105 bytes (javascript) 531 bytes (webassembly) [rendered]
[363] ./duff.wasm 105 bytes (javascript) 531 bytes (webassembly) {363} [built]
chunk {147} 147.bundle.js, 52a4420208d65f0d8a54.module.wasm, 4d49250abd149313ea7a.module.wasm 205 bytes (javascript) 444 bytes (webassembly) [rendered]
[412] ./fact.wasm 100 bytes (javascript) 154 bytes (webassembly) {147} [built]
[987] ./fast-math.wasm 105 bytes (javascript) 290 bytes (webassembly) {147} [built]
chunk {286} 286.bundle.js, 2194eba49084ca9f715b.module.wasm 100 bytes (javascript) 156 bytes (webassembly) [rendered]
[286] ./Q_rsqrt.wasm 100 bytes (javascript) 156 bytes (webassembly) {286} [built]
chunk {363} 363.bundle.js, 621a5ff1152e883ce251.module.wasm 100 bytes (javascript) 531 bytes (webassembly) [rendered]
[363] ./duff.wasm 100 bytes (javascript) 531 bytes (webassembly) {363} [built]
chunk {480} 480.bundle.js 34 bytes [rendered] split chunk (cache group: defaultVendors)
[480] ./node_modules/env.js 34 bytes {480} [built]
chunk {827} 827.bundle.js, 18de7b6bab402277b2ca.module.wasm, 6fbb79cdc6ab12e575f7.module.wasm 1.61 KiB (javascript) 274 bytes (webassembly) [rendered]
chunk {827} 827.bundle.js, 18de7b6bab402277b2ca.module.wasm, 6fbb79cdc6ab12e575f7.module.wasm 1.6 KiB (javascript) 274 bytes (webassembly) [rendered]
[827] ./tests.js 1.4 KiB {827} [built]
[896] ./popcnt.wasm 105 bytes (javascript) 120 bytes (webassembly) {827} [built]
[999] ./testFunction.wasm 105 bytes (javascript) 154 bytes (webassembly) {827} [built]
[286] ./Q_rsqrt.wasm 105 bytes (javascript) 156 bytes (webassembly) {286} [built]
[363] ./duff.wasm 105 bytes (javascript) 531 bytes (webassembly) {363} [built]
[412] ./fact.wasm 105 bytes (javascript) 154 bytes (webassembly) {147} [built]
[896] ./popcnt.wasm 100 bytes (javascript) 120 bytes (webassembly) {827} [built]
[999] ./testFunction.wasm 100 bytes (javascript) 154 bytes (webassembly) {827} [built]
[286] ./Q_rsqrt.wasm 100 bytes (javascript) 156 bytes (webassembly) {286} [built]
[363] ./duff.wasm 100 bytes (javascript) 531 bytes (webassembly) {363} [built]
[412] ./fact.wasm 100 bytes (javascript) 154 bytes (webassembly) {147} [built]
[480] ./node_modules/env.js 34 bytes {480} [built]
[827] ./tests.js 1.4 KiB {827} [built]
[896] ./popcnt.wasm 105 bytes (javascript) 120 bytes (webassembly) {827} [built]
[896] ./popcnt.wasm 100 bytes (javascript) 120 bytes (webassembly) {827} [built]
[967] ./index.js 586 bytes {73} [built]
[987] ./fast-math.wasm 110 bytes (javascript) 290 bytes (webassembly) {147} [built]
[999] ./testFunction.wasm 105 bytes (javascript) 154 bytes (webassembly) {827} [built]
[987] ./fast-math.wasm 105 bytes (javascript) 290 bytes (webassembly) {147} [built]
[999] ./testFunction.wasm 100 bytes (javascript) 154 bytes (webassembly) {827} [built]
+ 7 hidden modules"
`;