So I guess we should "transpile" static objects into strings that we call with JSON.parse?
Not sure if I should end this comment with a /s or not.
Not sure if I should end this comment with a /s or not.
[1] https://raw.githubusercontent.com/joypixels/emoji-toolkit/ma...
> As long as the JSON string is only evaluated once the JSON.parse approach is much faster.
So doing this would only work on top-level declarations, because the javascript runtime will cache the parsed JSON structure for subsequent executions (eg. creating an object in a loop).