File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ See docs/process.md for more on how version tagging works.
20
20
21
21
3.1.58 (in development)
22
22
-----------------------
23
+ - The ` -sMAIN_MODULE=1 ` mode no longer exports all the main module symbols on
24
+ ` Module ` object. This saves a huge about of generated JS code due the fact
25
+ that ` -sMAIN_MODULE=1 ` includes * all* native symbols in your program as well
26
+ is from the standard library. The generated JS code for a simple program
27
+ in this mode is reduced from from 3.3mb to 0.5mb. The current implementation
28
+ of this feature requires wasm-ld to be on the program twice which could have a
29
+ noticeable effect on link times. (#21785 )
23
30
- In ` -sMODULARIZE ` mode, the argument passed into the module constructor is
24
31
no longer mutated in place. The expectation is that the module instance will
25
32
be available via the constructor return value. Attempting to access methods
You can’t perform that action at this time.
0 commit comments