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

Migrate to rsbuild #737

Merged
merged 2 commits into from
Jan 1, 2025
Merged

Migrate to rsbuild #737

merged 2 commits into from
Jan 1, 2025

Conversation

encounter
Copy link
Contributor

@encounter encounter commented Dec 24, 2024

rsbuild wraps rspack and provides a more batteries-included solution. This provides a large reduction in Node deps and a simpler configuration schema.

I added various comments to rsbuild.config.ts, let me know if anything is unclear.

Note: the data dir was moved to public/data, along with dist/.htaccess -> public/.htaccess. This works better with the built-in dev server and production build logic. If undesired, public/data could be a symlink to ../data, so that devs don't have to move their dir.
public/data/ is now symlinked to data/.

@@ -116,7 +116,7 @@ class DataFetcherRequest {
public async start() {
this.started = true;

if (this.cache !== null) {
if (!IS_DEVELOPMENT && this.cache !== null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this because it will aggressively cache in dev server mode, even when using empty cache + reload

@magcius magcius merged commit 9bdfeb6 into magcius:master Jan 1, 2025
1 check passed
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.

2 participants