Skip to content

chore: implement rs pack - #5632

Open
SebastianKrupinski wants to merge 1 commit into
mainfrom
chore/rspack
Open

chore: implement rs pack#5632
SebastianKrupinski wants to merge 1 commit into
mainfrom
chore/rspack

Conversation

@SebastianKrupinski

@SebastianKrupinski SebastianKrupinski commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Implemented rs pack compiler
  • implemented css extraction

Results

Before:
Compile time: 11.5s
Compile size: 3.3mb

image

After:
Compile time: 4.2s
Compile size: 3.09mb

image

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@odzhychko odzhychko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the entry points. They work as expected.

package-lock.json needs to be remade.

Comment thread rspack.config.js
}),
new CssExtractRspackPlugin({
filename: '../css/contacts-[name].css',
chunkFilename: '../css/[id].chunk.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
chunkFilename: '../css/[id].chunk.css',
chunkFilename: '../css/chunks/[id].chunk.css',

nit(non-blocking): To be consistent with https://github.com/nextcloud/calendar/blob/fb819ae3762048fe6c5069b48dd2008bb311fd07/rspack.config.js#L233

Comment thread rspack.config.js
Comment thread package-lock.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: For some reason resolved and integrity are missing.

Maybe because private registry/cache/proxy where used when installing.
Can be fixed by running npx npm-package-lock-add-resolved.

Anyway conflicting package-lock.json‎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

2 participants