Skip to content

Conversation

@donker
Copy link
Contributor

@donker donker commented Dec 9, 2025

One thing that plagues DNN is our build time. This is largely due to the building of the various react projects of the PersonaBar and the common libraries behind this.

This PR switches out Webpack for RSBuild for the Servers, Seo, Security, Roles and Prompt modules. RSBuild is widely regarded as the next best thing in terms of build performance even beating Vite. In local testing building the aforementioned modules sped up from say 15 seconds to just over a second.

But the build is slightly different. For a number of modules the css used to be included in the javascript. The proposed changes all pull out the CSS to its own file. This means careful checking is needed nothing has nudged/changed/etc.

Another change is that the proposed system doesn't support hot reload. But that never worked for me in the past, so I'm not sure it's a change. If someone is using this I'd love to hear.

I'd love to hear from others what they think.

To run this:

  1. Open a terminal in the root of the DNN repo
  2. Run yarn install
  3. Then run one of the modules in watch or build mode: yarn run watch --scope <modulename>

For the modulename check the package.json. I.e. "prompt" for the Prompt module but "security-settings" for the Security module.

Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

RsBuild is new to me, but reading a bit about it, it is kind of a rewrite of webpack concepts but in rust, with better defaults and faster builds. As long as it does not break the builds, I am fine with this approach. As for HMR not working perfect, I think we are used to it and can live with that IMO.

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants