DEV Community


Discussion on: Great fun with Deno - My First Deno Framework

patarapolw profile image
Pacharapol Withayasakpunt • Edited

Yes, I was referring to frontend code, with problems of

  • Bundle size and data usage on the clients
  • i.e. browser support

I almost never minify backend code. Just mere tsc. Not even Babel. Never that big compared to node_modules anyway.

node_modules is heavy.

Thread Thread
oknoorap profile image
Ribhararnus Pracutian Author

Thats why Deno is the big rescue here 😁, we don't need node_modules anymore.

Thread Thread
michaelcurrin profile image

There's an open issue for this.

Recommended alternative by a commenter:

$ deno bundle | esbuild --minify > file_server.min.js
$ deno run --allow-net --allow-read file_server.min.js
Enter fullscreen mode Exit fullscreen mode
Forem Open with the Forem app