Git Product home page Git Product logo

Comments (7)

chenjiahan avatar chenjiahan commented on May 27, 2024 2

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.

IWANABETHATGUY avatar IWANABETHATGUY commented on May 27, 2024 2

after enable concatenateModules the size reduced to
image

from rspack.

IWANABETHATGUY avatar IWANABETHATGUY commented on May 27, 2024

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.

chenjiahan avatar chenjiahan commented on May 27, 2024

Sure, I will add webpack soon 😄

from rspack.

IWANABETHATGUY avatar IWANABETHATGUY commented on May 27, 2024

rspack patch 0.5.0-canary-f37d888-20240116115414
image
webpack without concatenate module
image

from rspack.

IWANABETHATGUY avatar IWANABETHATGUY commented on May 27, 2024

The rest size diff caused by concatenateModule

from rspack.

chenjiahan avatar chenjiahan commented on May 27, 2024

👍 awesome

from rspack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.