Skip to content

build(deps-dev): bump the rspack group across 1 directory with 2 updates#1583

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/rspack-373c48e577
Open

build(deps-dev): bump the rspack group across 1 directory with 2 updates#1583
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/rspack-373c48e577

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Bumps the rspack group with 2 updates in the / directory: @rspack/cli and @rspack/core.

Updates @rspack/cli from 1.7.11 to 2.0.4

Release notes

Sourced from @​rspack/cli'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

Updates @rspack/core from 1.7.11 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 dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 18, 2026
@dependabot dependabot Bot requested review from a team and mdn-bot as code owners May 18, 2026 22:11
@dependabot dependabot Bot requested a review from caugner May 18, 2026 22:11
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 18, 2026
@dependabot dependabot Bot changed the title build(deps-dev): bump the rspack group with 2 updates build(deps-dev): bump the rspack group across 1 directory with 2 updates May 19, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/rspack-373c48e577 branch 6 times, most recently from c859bce to 9fe6bb0 Compare May 22, 2026 18:52
Bumps the rspack group with 2 updates in the / directory: [@rspack/cli](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack-cli) and [@rspack/core](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack).


Updates `@rspack/cli` from 1.7.11 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-cli)

Updates `@rspack/core` from 1.7.11 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/cli"
  dependency-version: 2.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: rspack
- dependency-name: "@rspack/core"
  dependency-version: 2.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: rspack
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/rspack-373c48e577 branch from 9fe6bb0 to d74100c Compare May 22, 2026 19:26
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 Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant