Skip to content

version_52: Add pass to minify import and export names (#1719)

Choose a tag to compare

@kripken kripken released this 02 Nov 02:58
0ed4d2f
This new pass minifies import and export names, for example, this may minify

   (import "env" "longname" (func $internal))
to

   (import "env" "a" (func $internal))
By updating the JS that provides those imports/calls those exports, we can use the minified names properly. This can save a useful amount of space in the wasm and JS, see kripken/emscripten#7414