After years of configuring webpack for various projects I have finally decided to migrate all my projects to Parcel[1] manly because I got tired of creating and maintaining hundreds of lines of webpack.config.js files, I wanted something that just works. I am really happy with that decision. Parcel is plenty fast and is pretty much zero config, I can use it to build libraries[2] as well as applications[3] for the bro…
Turbopack, the successor to Webpack
181–190 of 331 posts
Re: Turbopack, the successor to Webpack
#182Earlier quoted context omitted.
By my count its 23 years. The biggest issue in FOSS is folk don't wanna join a "good enough" project and move it. Sometimes the project is contributor hostile (rare?) And we end up with basically: "I'll build my own moonbase with blackjack and hookers!" All that starting from scratch costs loads of impossible-to- recover-time.
Well, that's what is really frustrating here. Turbopack is built by the creator of Webpack. So, instead of fixing the bloated megalith that webpack has become, they are just moving on to greener pastures. But this time it'll be different™
Or start from scratch and make something better.
Either way, you split the community, but at least with the new tool you can (hopefully) manage to make it a lot better than a refactor would have been. (In some areas, anyways.)
Plus, this allows the old project to continue on without massive breaking changes, something its users probably appreciate. And this old project can still create new major versions if needed, which is something you don’t get if you have a major refactor because everything meaningful gets shipped to the refactored version.
So I think spinning off a new project is a net good here. It doesn’t impact webpack very much unless people ditch it and stop maintaining it (unlikely). It lets them iterate on new ideas without maintaining compatibility. (Good, when the big issue with webpack is its complexity.)
So if the idea turns out to be bad, we haven’t really lost anything.
Re: Turbopack, the successor to Webpack
#183I assume the mainstream is ready to swallow the idea.
Re: Turbopack, the successor to Webpack
#184Earlier quoted context omitted.
Doesn't esbuild skip Typescript type checking? https://esbuild.github.io/content-types/#typescript You'll still need to keep tsc around for that, though perhaps you're doing that with another step in Webpack...?
During hour to hour development, I just let Visual Studio tell me about the errors as they come up. On the rare occasions I don't already have the editor open before deploying, I have a shell script to kick off the right tsc invocation. Otherwise, bundling plus uploading to the server is just another shell script. Yes, a full type check from scratch is slow, but it doesn't come up that often.
Let's say you have a tsconfig.json. Create a tsconfig-test.json like this:
{
"compilerOptions": {
"noEmit": true,
"skipLibCheck": true
},
"extends": "./tsconfig.json",
"include": ["./\*/*.ts", "./\*/*.d.ts"]
}
Add a script to your package.json (I use "test-types") ...
"scripts": {
"test-types": "tsc --project ./tsconfig-test.json",
...
Then you can "yarn test-types" quickly. I use husky[1] to run that command as a git pre-commit hook. My team cannot commit Typescript errors. Additionally I have a strict tsconfig and a strict eslint config (with these plugins:sonarjs, @typescript-eslint, simple-import-sort) which prevents "any" types and bad typescript hygiene. Results in faster code reviews.Re: Turbopack, the successor to Webpack
#185After years of configuring webpack for various projects I have finally decided to migrate all my projects to Parcel[1] manly because I got tired of creating and maintaining hundreds of lines of webpack.config.js files, I wanted something that just works. I am really happy with that decision. Parcel is plenty fast and is pretty much zero config, I can use it to build libraries[2] as well as applications[3] for the bro…
This has been a huge frustration of mine with webpack - you end up with relatively complicated configs and it sometimes feels like even if you copy and paste your config over, you end up still having to spend a ton of time fighting with webpack to actually get it to work
Re: Turbopack, the successor to Webpack
#186Re: Turbopack, the successor to Webpack
#187Does it have module federation?
https://twitter.com/ScriptedAlchemy/status/15850274824321802...
Re: Turbopack, the successor to Webpack
#188Literally 1 day after my team migrates our build to Vite :')
Re: Turbopack, the successor to Webpack
#189Earlier quoted context omitted.
I don’t think any of the current options are good enough that I would want the community to settle on one of them at this point at the expense of any innovation or experimentation.
We’ve been doing JavaScript development for how many years now? And still no bundling options that are good enough? Or at least one that can continue to evolve vs. creating a successor, etc.
Re: Turbopack, the successor to Webpack
#190Earlier quoted context omitted.
During hour to hour development, I just let Visual Studio tell me about the errors as they come up. On the rare occasions I don't already have the editor open before deploying, I have a shell script to kick off the right tsc invocation. Otherwise, bundling plus uploading to the server is just another shell script. Yes, a full type check from scratch is slow, but it doesn't come up that often.
To anyone who wants to do this: Let's say you have a tsconfig.json. Create a tsconfig-test.json like this: { "compilerOptions": { "noEmit": true, "skipLibCheck": true }, "extends": "./tsconfig.json", "include": ["./\*/*.ts", "./\*/*.d.ts"] } Add a script to your package.json (I use "test-types") ... "scripts": { "test-types": "tsc --project ./tsconfig-test.json", ... Then you can "yarn test-types" quickly. I use husk…