3 Replies
Yes, Deno's
deno compile
command supports dynamic imports. According to the documentation, if your dynamic import statements are statically analyzable, meaning you use string literals inside import()
, the specifiers will be automatically included in the produced binaries. Here's an example from the documentation:
For cases where the specifiers are not statically analyzable, you can use the new --include
flag to specify additional files to include in the binary. This flag can be used multiple times to include multiple files. 🦕Helpful Links:
Deno 1.32: Enhanced Node.js Compatibility
Deno 1.39: The Return of WebGPU
Why We Added package.json Support to Deno
Import Completions and Intelligent Registries | Deno Docs
Using Visual Studio Code | Deno Docs
Using Visual Studio Code | Deno Docs
Importing & Exporting - Deno by Example
🦕 Oops! Can you pinpoint where I went wrong to help me improve? 📈
i was not talking about the deno compile command. i was talking abbout the deno emit package