2saturdayscode
How do deno devs bundle .js for browser projects? (SPAs, chrome extensions, etc)
You can use esbuild, but since esbuild is built for Node specifically, it needs to understand how Deno resolves imports and stuff like that, so you'll need a plugin to instruct esbuild, you can use this: https://jsr.io/@duesabati/esbuild-deno-plugin
9 replies
Cant configure Tailwind with DaisyUI using Deno inside of Docker | Error: Cannot find module daisyui
This is a legit and the official way to have compatibility with node stuff, it’s not magic it just downloads the stuff from npm and saves it there, you would get the same result if you opted in vendoring (ie save the deps in your repo so you can upload it in your deploys. It would create a node_modules dir but also a vendor dir too for non-npm des) so really nothing to worry about
13 replies