demergent-labs / azle

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

esbuild rearranges imports sometimes #1993

Open lastmjs opened 1 month ago

lastmjs commented 1 month ago

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

lastmjs commented 1 month 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.