Closed ykmnkmi closed 2 years ago
Or remove Testability
API?
Nice code size reduction!
I agree with this mostly, but maybe not remove it for now. I think it is still useful to be able to know the state (particularly the isStable
stuff) from the JS side for testing & potentially SSR. Not automatically injecting it is enough.
Testability
is the only API that relies on thejs
package (notjs_util
) and that increases the build size. Now, in order to use theTestability
API, you need to inject it manually usingGenerateInjector
withtestabilityProvider
:For example, the build size of the
hello_world
(withoutjs
package) example was 163,315 and is now 101,983.Also some ToDo fixes.