diff --git a/test/code_size/hello_webgl2_wasm.json b/test/code_size/hello_webgl2_wasm.json index e8b38c3dcb5a2..ff8700bfd5705 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": 4382, - "a.js.gz": 2251, + "a.js": 4550, + "a.js.gz": 2310, "a.wasm": 8286, "a.wasm.gz": 5616, - "total": 13122, - "total_gz": 8195 + "total": 13290, + "total_gz": 8254 } diff --git a/test/code_size/hello_webgl2_wasm2js.json b/test/code_size/hello_webgl2_wasm2js.json index a16aec433c5ca..3fbb64ab52b7a 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": 18074, - "a.js.gz": 9773, - "total": 18420, - "total_gz": 10035 + "a.js": 18242, + "a.js.gz": 9840, + "total": 18588, + "total_gz": 10102 } diff --git a/test/code_size/hello_webgl_wasm.json b/test/code_size/hello_webgl_wasm.json index 9cdef1e579af1..a94665376c76d 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": 3920, - "a.js.gz": 2089, + "a.js": 4088, + "a.js.gz": 2152, "a.wasm": 8286, "a.wasm.gz": 5616, - "total": 12660, - "total_gz": 8033 + "total": 12828, + "total_gz": 8096 } diff --git a/test/code_size/hello_webgl_wasm2js.json b/test/code_size/hello_webgl_wasm2js.json index 0f1d034fd4e06..7317c643c0bbc 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": 17601, - "a.js.gz": 9608, - "total": 17947, - "total_gz": 9870 + "a.js": 17769, + "a.js.gz": 9675, + "total": 18115, + "total_gz": 9937 } diff --git a/tools/link.py b/tools/link.py index 2e82c0cf459da..031d759617de5 100644 --- a/tools/link.py +++ b/tools/link.py @@ -2507,7 +2507,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;