engine icon indicating copy to clipboard operation
engine copied to clipboard

feat: use node's native import() to load modules

Open AviVahl opened this issue 7 months ago • 2 comments

target is now node16, which means we still transpile our code to cjs (no "type": "module" yet).

we now retain the dynamic import() calls as-is, rather than transpiling them to require() calls.

this will make it easier for user projects to move to native esm.

AviVahl avatar Jul 14 '24 15:07 AviVahl