v0.9.7 - distributed script breaks in Safari

This issue has been tracked since 2022-07-26.

When using the script in/dist/ directly in the browser (via https://unpkg.com/[email protected]), an error is thrown in Safari 14 and 15 breaking some (but not all) functionality.

This line throws an unexpected token error:

static OP_TABLE = {

v0.9.5 was working previously.

rozek wrote this answer on 2022-08-18

(Disclaimer: I'm a complete _hyperscript newbie myself!)

I just ran into the same problem. It is caused by the fact, that older Safari versions do not support static fields in classes.

As a consequence, I've forked the original code base and am now trying to "convert" the JS code into TypeScript, as that can produce JavaScript output which runs on older devices and browsers, but still offers modern JS features to the programmer.

Let us see if I succeed...

rozek wrote this answer on 2022-08-18


I may have fixed the problem. Could you please test it as well, just by using

<script src="https://unpkg.com/hyperscript-experimental"></script>

instead of the normal script file?

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86


Issue Title Created Date Updated Date