Could you please help me with replacing deprecetad deno bundle
command?
I wanted to change it for esbuild, but running a command:
./node_modules/.bin/esbuild --bundle lib/commands/abc/main.ts --outfile=mod.abc.ts
give me an error:
[ERROR] Top-level await is currently not supported with the "iife" output format
I have tried also with --format=cjs
and --format=esm
option, but the output still is different than deno bundle
output. eg. there are not imports included.
How should I use it?
Or maybe can you help me with other option? The goal is to quickly remove deno bundle
without main code modification.