NfNitLoop / deno-embedder

Dev tools for embedding files into Deno applications
40 stars 4 forks source link

ESBuild Plugin: Can't bundle static files #10

Open NfNitLoop opened 5 months ago

NfNitLoop commented 5 months ago

Since v1.2.1, I switched to using https://github.com/lucacasonato/esbuild_deno_loader to download/cache Deno dependencies.

However, that plugin has an issue bundling non-code sources:

Workaround:

Until then, keep code and non-code assets in separate directories (like in the example), and disable the bundleRemoteSources option if you need to use the ESBuild plugin on non-script resources.