Skip to content

test: move experiments.lazyCompilation config to top-level#5831

Merged
chenjiahan merged 1 commit intomove_lazy_compilation_0813from
fix/test-lazy-compilation
Aug 13, 2025
Merged

test: move experiments.lazyCompilation config to top-level#5831
chenjiahan merged 1 commit intomove_lazy_compilation_0813from
fix/test-lazy-compilation

Conversation

@GiveMe-A-Name
Copy link
Copy Markdown
Member

@GiveMe-A-Name GiveMe-A-Name commented Aug 13, 2025

Summary

Rsbuild will set rspack configuration top-level lazyCompilation as { imports: true, entries: false }.
If user set rspack experiments.lazyCompilation as true, the finally config that pass to rspack will become:

{
  experiments: {
    // ...
    lazyCompilation: true
  },
  lazyCompilation: {
    imports: true,
    entries: false
  },
}

In Rspack, the top-level lazyCompilation will take precedence over experiments.lazyCompilation.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@chenjiahan chenjiahan changed the title fix: move rspack configuration experiments.lazyCompilation to top-level test: move experiments.lazyCompilation config to top-level Aug 13, 2025
chenjiahan
chenjiahan previously approved these changes Aug 13, 2025
@chenjiahan chenjiahan changed the base branch from move_lazy_compilation_0813 to main August 13, 2025 07:17
@chenjiahan chenjiahan dismissed their stale review August 13, 2025 07:17

The base branch was changed.

@chenjiahan chenjiahan changed the base branch from main to move_lazy_compilation_0813 August 13, 2025 07:18
@chenjiahan chenjiahan merged commit 34d7746 into move_lazy_compilation_0813 Aug 13, 2025
6 checks passed
@chenjiahan chenjiahan deleted the fix/test-lazy-compilation branch August 13, 2025 07:18
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