229 points · by jacobwg · 4y ago · 100 comments
Looks like they launched a webpack alternative called Turbopack today:
> Next.js 13 includes Turbopack, the new Rust-based successor to Webpack.
It always amazed me that such a big project can just live without docs.
One recent offering I enjoyed working with was esbuild, as I could use it's CLI as part of my existing build system incrementally instead of planning my whole system around it.
1. Does code written a particular way?
2. Does it need to be configured?
3. Does it conflict with other tooling?
4. Does it have limitations that are too restrictive?
5. Does it cause bugs/issues that are difficult to resolve?
The ideal tool just does its thing, doesn't need any code written or configuration, works no matter what other tooling you're using, has no limitations, and will never itself cause a bug.
That might not be realistic to do 100%, but I think it's what all tools should be aiming for.
How many apps are dealing with 3,000+ modules?
Is it perfect. No. But it's very close for most of my use cases.
> Turbopack updates 10x faster than Vite and 700x faster than Webpack
> Turbopack is an incremental bundler optimized for JavaScript and TypeScript, written in Rust by the creators of Webpack and Next.js at Vercel.
// "alt" is now required for improved accessibility
I'm all for accessibility, but let us decide when to implement it.It should be very clear by just looking around on the internet that, when given the choice, accessibility will take a back seat.
That said, the use of empty alt tags is generally discouraged and not even allowed together with the ARIA presentation role in most cases.
This decision of theirs will steer developers towards non-compliant/asemantic code. It's really stupid.
https://html.spec.whatwg.org/multipage/images.html#alt
Which usually means never.
See also (naming things): https://twitter.com/secretGeek/status/7269997868
That's like saying "Typescript just encourages people to make everything `any` instead of defining types. It's a useless addition over JS." Sure, you _could_, but most actually use the actual tool.
It's 6 extra characters, you'll survive.
1. Where does this "use" comes from ? It is not present in the official React API reference : https://reactjs.org/docs/react-api.html
2. It says that the value is not serialized, but what if Page is rendered client side and I want getData to always be executed server side (for example, it may contains secret API key, or make a database call) ?
3. getData is async, so what happens to name if the promise is not yet resolved ?
- EsBuild
- SWC (also written by someone who works at Vercel)
- TurboPack
- Vite (rollup)
- Parcel
- Rome
I've noticed in the javascript ecosystem there is much less convergence than in other languages. Everyone wants a flag in the ground.
Right now you can stay with Webpack or whatever you were using already, or you can try one of the new shiny things if you want to. But if you want to avoid the churn, it's probably time to just wait for a bit until things settle down.
bigger audience, bigger chance to make it big selling crap to developers so more personalities try to build an audience by making OSS
Crazy huge user win.
I am a little nervous how much stuff Next does in the middle, how thoroughly it links front & back end. Streaming a page with chunks missing then streaming sections as they resolve is pretty advanced magic. Amazing DX experience but I also can think back to asp.net & remember huge viewstate blobs & utterly magic middle-layers, and those were powerful too, but impregnible bizarre systems to the developer & that wasnt good.
Next keeps hitting reaply really nice sweet spots & consolidates & tackles so many problems, and my trepidation is small at this point, but this is really redefining the page a lot, & I feel like I really want some deep dives on the technics involved here, want to know the magic is somewhat accessible & coherent, for fellow would be meddlers.
With new frameworks poping out (qwik, remix, fresh, etc...), it's getting really interesting and tiresome at the same time.
We're migrating all our platforms to React/Next and we couldn't be happier. Is it perfect? Nothing really is. Next is good enough, the community is engaged, the ecosystem is big, and the industry is basically dominated by react (giving react devs some sort of peace of mind when looking or switching jobs).
Sometimes, you have to pick a piece of tech and roll with it as long as the tech keeps improving and the community improves alongside it. Nextjs is currently doing it.
The documentation for the new /app directory support is not complete though. API routes seems to be not documented yet (or is it not implemented yet?) so I haven't ported mine and leave it on the /pages/api directory for now.
Tell me:
1. What I need to know to understand this documentation
2. The before state (plain React.js)
3. The after state (Next.js)
I'm fucking sold, I'm going to use Next.js just based on how well written this documentation is.
I Understand the euphoria, but this is a pretty bad take.
I’ve already heard from the team about the plan for my last concern, and it seems viable.
https://andrewingram.net/posts/thoughts-on-next-13-react-18-...
My app isn't complex, it uses Recoil, Tailwind and that's it. Compile times were better in v11 in my experience.
No idea what ISR stands for.