Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converts webpack to rspack #201

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

elliotBraem
Copy link
Contributor

@elliotBraem elliotBraem commented Jul 30, 2024

This builds off of @gagdiez #195 to replace incompatible node-sass

rspack is a rust optimized, drop-in replacement for webpack. This replacement was done in an effort to analyze current bundle sizes and improve dev experience. Pairs with nearbuilders/near-bos-webcomponent#45

  • replaces webpack with rspack
  • removes babel and replaces webpack packages with rspack compatible versions
  • removes webpack bundle analyzer and adds command -- this comes baked-in rspack
  • benchmark current dev + prod build times
  • benchmark rspack dev + prod build times
  • benchmark current bundle size
  • benchmark rspack bundle size
  • confirmed regression tests working in near-bos-webcomponent
near-social-vm Webpack Rspack
dev build time 7.12 s 202 ms
prod build time 9.01s 249 ms
bundle size (stat) 397.73 KB 293.75 KB
bundle size (parsed) 190.53 KB 118.35 KB
bundle size (gzipped) 40.34 KB 34.24 KB

(bundle sizes are impacted by node-sass replacement)

gagdiez and others added 9 commits May 24, 2024 10:36
The current packages being used for sass are no longer supported, and
create an error when using node v20 & v22

This commit updates the dependencies, to use packages are maintained
and are thus compatible with current node versions
@elliotBraem elliotBraem marked this pull request as ready for review July 30, 2024 05:11
@frol
Copy link

frol commented Jul 30, 2024

@elliotBraem Amazing results! I'd score it 13 with @race-of-sloths!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants