This is basically the change propagated from the current default preact tempalate. Now the code compiles according to set browsers.