demergent-labs / azle

A WebAssembly runtime for TypeScript and JavaScript on ICP
MIT License
208 stars 36 forks source link

esbuild rearranges imports sometimes #1993

Open lastmjs opened 3 months ago

lastmjs commented 3 months ago

Sometimes it seems like esbuild does not honor import position strictly as written...will this be a problem?

lastmjs commented 3 months ago

Actually, it might be our TypeScript compilers that are doing this, and this might not be standard behavior: https://github.com/evanw/esbuild/issues/1444

What I mean is that, esbuild might be doing it correctly.