Open subframe7536 opened 1 year ago
if function xxx() be the last function in file, it cannot properly export, otherwise, everything works
function xxx()
reproduce: https://stackblitz.com/edit/solidjs-templates-qvpheq?file=src%2Findex.worker.ts, see the comment on sum and the error info in console
sum
Somehow I missed this issue, sorry about that. It seems a pretty weird issue, probably a bug in the esbuild transform somewhere 🤔
if
function xxx()
be the last function in file, it cannot properly export, otherwise, everything worksreproduce: https://stackblitz.com/edit/solidjs-templates-qvpheq?file=src%2Findex.worker.ts, see the comment on
sum
and the error info in console