Closed luboslenco closed 5 years ago
We also need script debugging (at least for the regular builds). But yes, there's still a bunch of stuff in Chakra which we can and should deactivate.
I did some tests: disabling ENABLE_JS_ETW
and ENABLE_INTL_OBJECT
shaves 200KB. I also tried disabling ENABLE_SCRIPT_DEBUGGING
which shaves 500KB.
By default we are probably better off leaving things as they are to not run into weird issues.
There is a way to build Lite version of ChakraCore to further minimize size. We want to keep JIT but the other bits may be useful. https://github.com/Microsoft/ChakraCore/pull/3553