Skip to content

[stable34] build(deps-dev): Bump @rspack/core from 2.0.3 to 2.0.4#18149

Merged
github-actions[bot] merged 1 commit into
stable34from
dependabot/npm_and_yarn/stable34/rspack/core-2.0.4
May 28, 2026
Merged

[stable34] build(deps-dev): Bump @rspack/core from 2.0.3 to 2.0.4#18149
github-actions[bot] merged 1 commit into
stable34from
dependabot/npm_and_yarn/stable34/rspack/core-2.0.4

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 28, 2026

Bumps @rspack/core from 2.0.3 to 2.0.4.

Release notes

Sourced from @​rspack/core's releases.

v2.0.4

Highlights 💡

  • Inline const with module declarations (#14032): Previously, Rspack only inlined constant exports from leaf modules in the module graph. Now constant exports from any module can be inlined, even when that module also imports or re-exports other modules. In rare circular-reference cases this can make a TDZ error disappear, but we do not expect real projects to rely on TDZ errors, so Rspack prioritizes the optimization.

    // constants.js
    import './setup';
    export const ENABLE_EXPERIMENT = false;
    // entry.js
    import { ENABLE_EXPERIMENT } from './constants';
    if (ENABLE_EXPERIMENT) {
    runExperiment();
    }
    // Before: constants.js is not a leaf module, so the branch could keep
    // reading the imported binding.
    if (ENABLE_EXPERIMENT) {
    runExperiment();
    }
    // Now: the constant can still be inlined, so dead branches are easier
    // to remove.
    if (false) {
    runExperiment();
    }

  • Tree shake namespace default reexport (#13980): Previously, the import * as a from './a'; export default a; pattern did not tree-shake a through the default export. Now Rspack further analyzes the default-exported namespace object and can remove unused exports from the original namespace module.

    // a.js
    export function used() {}
    export function unused() {}
    // bridge.js
    import * as a from './a';
    export default a;
    // app.js
    import a from './bridge';
    a.used();
    // Before: both used and unused could be kept in the bundle.
    // Now: unused can be tree-shaken.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@rspack/core](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v2.0.4/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/core"
  dependency-version: 2.0.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript labels May 28, 2026
@github-actions github-actions Bot changed the title build(deps-dev): Bump @rspack/core from 2.0.3 to 2.0.4 [stable34] build(deps-dev): Bump @rspack/core from 2.0.3 to 2.0.4 May 28, 2026
@github-actions github-actions Bot enabled auto-merge May 28, 2026 11:56
@github-actions github-actions Bot merged commit e6a64a3 into stable34 May 28, 2026
54 checks passed
@github-actions github-actions Bot deleted the dependabot/npm_and_yarn/stable34/rspack/core-2.0.4 branch May 28, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants