Live data from Hacker News

You don't need a build step

deno.com

41–50 of 224 posts

Re: You don't need a build step

#41

So Deno is relying on native ESM imports in production code? Isn't that exactly what Vite _doesn't_ do, because of poor performance? When you run the vite dev server it uses ESM, but when you build it uses rollup, because serving ESM is slow and with larger apps the client browser is going to make a bazillion requests. Wouldn't you rather traverse the dependency graph one time and bundle your code into modules so tha…

I think this is actually because esbuild doesn’t support everything needed in their production bundle (well controlled/grouped bundles) while it’s excellent for dev where there’s no such need.

I can’t remember where I read it, I think it’s in the official docs.

Re: You don't need a build step

#42
post #19

[flagged]

I think that the absence of a compilation phase does not prevent the establishment of infrastructure for e2e testing. If you can only be sure that the application is running when the build is successful, then there are probably other big problems there.

Re: You don't need a build step

#43

So basically Deno has its own bundler that lets you not have a local build step and it gets bundled dynamically per-route as requested by users, right? This is very different from industry standards and possibly has many new concerns from devs, none of which are addressed in the article since it's treating the system as a perfect solution, which makes sense since it's a marketing page ("content marketing"). If it was…

It sounds like (it is a little vague) there is no bundling at all, the only thing Deno does magically at request time is transpiling TypeScript/JSX to browser-compatible JS. Beyond that I think the idea is it relies on native ES module imports (and import-maps), both of which are browser standards

Re: You don't need a build step

#45

Pretty sure we were building code to validate it and unit test it before releasing it. This article is strictly about JavaScript. What about all the server-side rendering frameworks? Huge assumption that everything is built one way.

[deleted]

Re: You don't need a build step

#46
I'm not sure why so many are interested in not having a build step. You'll still want to have a step that runs typescript to check for errors, a linter, maybe your tests and other stuff.

Or do people just want to YOLO it and let it crash in prod?

Re: You don't need a build step

#50
post #40

Sounds to me like we've round-tripped back to PHP, circa 2009. Bout time!

That's the vibe I got from browsing the Fresh documentation. However, I don't see it as a bad thing! Concepts feel like they fit together much more nicely than what I've seen in a lot of web tools.

As someone who is a bit of an outsider to webdev, it looks like enough power to make most webapps I'd want to make. I think the only question in my mind is what the benefits/drawbacks of Deno+Fresh vs something like SvelteKit.

Post reply on HN