Rspack 1.6 Release Plan #11594
Replies: 5 comments
-
Disable
|
Beta Was this translation helpful? Give feedback.
-
EsmLibraryPluginMany of you already uses the However it's implemented only for entries, it didn't change the way Rspack loads chunks, so if you have dynamic import, the imported chunk is not pretty as well, it looks like normal Rspack style chunk. 👇 exports.chunk_id = '467'
exports.modules = {
'src/index.js': function() { ... }
}Which is certainly not able to be statically analyzed, and statically analyzable is important for library. So we change how chunk renders only for ESM library output, the output should be cleaner and more human-readable. It can work with splitChunks, you can customize chunk creation. import { foo } from './main-314.js'
const bar = () => foo
export { bar }This is the experimental feature, if you encounter any problem, please contact us by issues Related |
Beta Was this translation helpful? Give feedback.
-
Improve dynamic import tree shaking |
Beta Was this translation helpful? Give feedback.
-
Enable
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Features
1. Stablize
experiments.layers#11593
#11819
Remove
experiments.layersconfig @JSerFeng2. Esm Library Plugin
#10350
Using brand-new esm output for library, more pretty and tree-shaking friendly output, supports manually code-splitting. @JSerFeng
3.
output.charsetis false by default#11837
4. Improved dynamic import tree shaking
We have introduced many improvements for tree shaking dynamic import by @ahabhgk.
5. Enable
experiments.lazyBarrelby defaultRsbuild has already enabled it by default since v1.5, after a period of practicing on Rsbuild, we believe that lazyBarrel is close to being stable.
Beta Was this translation helpful? Give feedback.
All reactions