diff --git a/test/code_size/hello_webgl2_wasm.json b/test/code_size/hello_webgl2_wasm.json index 57518ddaba94c..0615bc2ef52d2 100644 --- a/test/code_size/hello_webgl2_wasm.json +++ b/test/code_size/hello_webgl2_wasm.json @@ -1,10 +1,10 @@ { "a.html": 454, "a.html.gz": 328, - "a.js": 4538, - "a.js.gz": 2320, + "a.js": 4706, + "a.js.gz": 2383, "a.wasm": 10206, "a.wasm.gz": 6663, - "total": 15198, - "total_gz": 9311 + "total": 15366, + "total_gz": 9374 } diff --git a/test/code_size/hello_webgl2_wasm2js.json b/test/code_size/hello_webgl2_wasm2js.json index 3074c7154d437..92e5ecc283eea 100644 --- a/test/code_size/hello_webgl2_wasm2js.json +++ b/test/code_size/hello_webgl2_wasm2js.json @@ -1,8 +1,8 @@ { "a.html": 346, "a.html.gz": 262, - "a.js": 22202, - "a.js.gz": 11604, - "total": 22548, - "total_gz": 11866 + "a.js": 22370, + "a.js.gz": 11669, + "total": 22716, + "total_gz": 11931 } diff --git a/test/code_size/hello_webgl_wasm.json b/test/code_size/hello_webgl_wasm.json index 1aad262f62aa7..e441927da2bef 100644 --- a/test/code_size/hello_webgl_wasm.json +++ b/test/code_size/hello_webgl_wasm.json @@ -1,10 +1,10 @@ { "a.html": 454, "a.html.gz": 328, - "a.js": 4076, - "a.js.gz": 2163, + "a.js": 4244, + "a.js.gz": 2227, "a.wasm": 10206, "a.wasm.gz": 6663, - "total": 14736, - "total_gz": 9154 + "total": 14904, + "total_gz": 9218 } diff --git a/test/code_size/hello_webgl_wasm2js.json b/test/code_size/hello_webgl_wasm2js.json index c0b731a9418e9..e939c448b0845 100644 --- a/test/code_size/hello_webgl_wasm2js.json +++ b/test/code_size/hello_webgl_wasm2js.json @@ -1,8 +1,8 @@ { "a.html": 346, "a.html.gz": 262, - "a.js": 21728, - "a.js.gz": 11435, - "total": 22074, - "total_gz": 11697 + "a.js": 21896, + "a.js.gz": 11500, + "total": 22242, + "total_gz": 11762 } diff --git a/tools/link.py b/tools/link.py index c7c5ffdb0f4cf..6f9903e9f477b 100644 --- a/tools/link.py +++ b/tools/link.py @@ -2494,7 +2494,7 @@ def modularize(): src += 'export {' + ', '.join(exports) + '};\n' else: src += 'export default %s;\n' % settings.EXPORT_NAME - elif not settings.MINIMAL_RUNTIME: + else: src += '''\ if (typeof exports === 'object' && typeof module === 'object') { module.exports = %(EXPORT_NAME)s;