Learn how we built Turbopack with incremental computation to scale development and builds to Next.js applications of all sizes.
https://t.co/cvlEmRCVKh
@robpalmer2@TC39@rspack_dev@webpack Found and fixed some bugs for webpack when I'm porting it to Rspack. And I'm planning to support `import.defer()` for both of them
@wunderacle@rspack_dev@voidzerodev@vite_js@webpack@openjsf Besides plugin/loader API, it's also important to align the runtime behavior of some bundled code across different bundlers, such as how to bundle `import.meta.resolve()` https://t.co/mA2Y7sG3N9
It's good to have a "WinterCG but for bundlers" to coordinate these
@jait_chen @felix_mosheev@rspack_dev It’s possible but very limited.
1. it’s a const declaration, so have to consider TDZ, which means only leaf in the module graph can be inlined.
2. Needs to consider: (ActiveType as any).All = “Change”
@jait_chen @magic_akari This PR is only collecting enums from loader, and let bundler to optimize them, the real inline optimization is actually implemented in this PR: https://t.co/bUCCt8cy1e
Rspack v1.5 will introduce an experimental optimization that skips building unused reexports in side-effect-free barrel files.
This reduces the build time of `import { Button } from 'antd'` from 528ms to 82ms.
@grap___grap@rspack_dev Yes, the module that imported by unused reexports will not be resolved (and no build, no loaders..., won't exist in be module graph at all), the module of used reexports will still be resolved and built.
BTW I have an article that was written 2 years ago and published externally a few months ago. It primarily focuses on the practical aspects of bundling RSC in webpack. Though some parts may be outdated and need some knowledge about webpack to comprehend.
https://t.co/byyXhS49yg
Just finished reading. So excellent article that elaborates on the advantages of RSC from "how to improve loading the bundles" perspective, some of which I wasn't even aware of before.
Wrote an article about how React Server Components integrate with a bundler. It's a deep dive into how code splitting works, how RSCs eliminate network waterfalls, how environment directives like "use client" work, CSS loading, etc. Check it out! https://t.co/LzcdzszrG3
Wrote an article about how React Server Components integrate with a bundler. It's a deep dive into how code splitting works, how RSCs eliminate network waterfalls, how environment directives like "use client" work, CSS loading, etc. Check it out! https://t.co/LzcdzszrG3
@devongovett For the `this` value problem, webpack actually has a `strictThisContextOnImports` options to make the `this` value correct for concatenateModules, but it's false by default 🫣
https://t.co/zStFwGRgwK
I believe this makes Parcel the first standalone bundler with built-in RSC support. Unlike other RSC implementations, Parcel is not a framework. It gives you tools to build your own application or framework, experiment with new patterns, or integrate RSCs into an existing app.