fails with Cannot read property 'match' of undefined. It's because of the somewhat simplistic AST traversal in src/backend/helpers.ts, line 128. This line:
if (el.match(/_use/)) hooksNames[el] = statements[i + 1];
I could a submit a PR, but don't fully understand the code, and thought you'd probably do it better.
This code
fails with
Cannot read property 'match' of undefined
. It's because of the somewhat simplistic AST traversal insrc/backend/helpers.ts
, line 128. This line:I could a submit a PR, but don't fully understand the code, and thought you'd probably do it better.
Thanks anyhow!