Comments (7)
I have updated the demo and added webpack.
The bundle size of webpack is 73.8 kB
, smaller than Rspack, but still larger than Vite/Rollup. Maybe we can align with webpack first.
> rsbuild build --config ./rsbuild.config.webpack.mjs
Rsbuild v0.3.2
ready Client compiled in 0.95 s
info Production file sizes:
File Size Gzipped
dist/index.html 0.26 kB 0.20 kB
dist/static/js/index.8effef00.js 73.8 kB 28.9 kB
Total size: 74.1 kB
Gzipped size: 29.1 kB
- Rspack: 91.9 kB
- webpack: 73.8 kB
- rollup: 67.83 kB
from rspack.
after enable concatenateModules
the size reduced to
from rspack.
Can you try webpack? It would not be considered as a bug, if our bundle size isn't bigger than webpack (at least for current stage).
from rspack.
Sure, I will add webpack soon 😄
from rspack.
rspack patch 0.5.0-canary-f37d888-20240116115414
webpack without concatenate module
from rspack.
The rest size diff caused by concatenateModule
from rspack.
👍 awesome
from rspack.
Related Issues (20)
- [Bug]: rspack hmr hit error when version > 0.5.1 HOT 29
- [Feature]: Website Playground HOT 1
- [Bug]: hmrC.css is missing after the css_loading runtimeModule is changed
- [Bug]: panic "Run build_module hook failed" in compiler queue HOT 2
- [Bug]: panic "Failed to send process dependencies result" in compiler/compilation HOT 1
- [Bug]: panic "We should return this error rathen expect" in compiler/compilation.rs
- [Bug]: webpack-test/configCases/css/{urls,large} is slow
- [Bug]: panic in harmony_export_imported_specifier_dependency
- [Bug]: panic in resolver with empty specifier for when path has `!` at the end HOT 1
- [Bug]: panic "should have dependency id" in import_meta_context_dependency HOT 1
- remove 'changed-files' in `hotTestCases`
- [Bug]: force rebuild when `cacheable` set to `false`
- [Bug]: Using newTreeshaking with concatenateModules got unexpected `__WEBPACK_MODULE_REFERENCE__`
- [Bug]: Panic occurred at runtime. with v 0.5.2 on Windows HOT 1
- [Bug]: using `concatenateModules` with `experiments.css` and results in no CSS in output HOT 2
- [Bug]: using `concatenateModules` with `rspack serve` cause runtime panic "should have build info" HOT 1
- [Bug]: Treeshaking output error HOT 4
- support `import.meta.webpackHot.data`
- [Bug]: generated wrong HMR runtime when accepted dependency is not imported before
- [Bug]: TypeError: Cannot read properties of undefined (reading 'input') HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.