Skip to content

chore(deps): update rspack monorepo to v2.0.5#440

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rspack-monorepo
Open

chore(deps): update rspack monorepo to v2.0.5#440
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rspack-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 28, 2026

This PR contains the following updates:

Package Change Age Confidence
@rspack/cli (source) 2.0.22.0.5 age confidence
@rspack/core (source) 2.0.12.0.5 age confidence

Release Notes

web-infra-dev/rspack (@​rspack/cli)

v2.0.5

Compare Source

Highlights

Support import.meta.glob

Rspack now supports import.meta.glob, a file-system import API already available in Vite and Turbopack. We chose to align with this ecosystem behavior.

const pages = import.meta.glob('./pages/**/*.tsx', {
  eager: true,
  import: 'default',
  query: { layout: 'docs' },
  base: './pages',
});
More controllable CSS module parsing

CSS modules can now control parsing for @import, animations, custom idents, and dashed idents through module.parser, so projects can match existing CSS Modules behavior more closely while migrating to Rspack.

export default {
  module: {
    parser: {
      'css/module': {
        import: true,
        animation: true,
        customIdents: true,
        dashedIdents: true,
      },
    },
  },
};

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.0.4...v2.0.5

v2.0.4

Compare Source

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.
  • CSS global module type (#​13988): css/global is useful when most selectors in a stylesheet should stay global, but you still want CSS Modules features for selected local selectors. This makes it easier to migrate existing global CSS gradually without turning every class name into a local scoped name.

    export default {
      module: {
        rules: [{ test: /\.global\.css$/i, type: 'css/global' }],
      },
    };
    /* style.global.css */
    .button {
      color: red;
    }
    
    :local(.title) {
      font-weight: 600;
    }

    .button stays global, while .title is renamed as a local class.

  • CSS Modules local ident options (#​14009): CSS Modules now support local ident hash options such as hash function, digest, digest length, and salt. These options make generated class names more configurable and better aligned with webpack-compatible CSS Modules setups.

    export default {
      module: {
        rules: [{ test: /\.module\.css$/i, type: 'css/module' }],
        generator: {
          'css/module': {
            localIdentName: '[name]__[local]__[hash]',
            localIdentHashFunction: 'xxhash64',
            localIdentHashDigest: 'hex',
            localIdentHashDigestLength: 8,
            localIdentHashSalt: 'my-salt',
          },
        },
      },
    };

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.0.3...v2.0.4

v2.0.3

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.0.2...v2.0.3


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from b2bd2fe to d6eff2d Compare May 6, 2026 14:01
@renovate renovate Bot changed the title chore(deps): update rspack monorepo to v2.0.1 chore(deps): update rspack monorepo to v2.0.2 May 6, 2026
@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from d6eff2d to 7ccc6a8 Compare May 10, 2026 17:16
@renovate renovate Bot changed the title chore(deps): update rspack monorepo to v2.0.2 chore(deps): update dependency @rspack/core to v2.0.2 May 10, 2026
@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from 7ccc6a8 to a86f0d1 Compare May 10, 2026 17:19
@renovate renovate Bot changed the title chore(deps): update dependency @rspack/core to v2.0.2 chore(deps): update rspack monorepo to v2.0.3 May 12, 2026
@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from a86f0d1 to 6e4721e Compare May 12, 2026 11:26
@renovate renovate Bot changed the title chore(deps): update rspack monorepo to v2.0.3 chore(deps): update rspack monorepo to v2.0.4 May 20, 2026
@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from 6e4721e to ab8d374 Compare May 20, 2026 13:07
@renovate renovate Bot force-pushed the renovate/rspack-monorepo branch from ab8d374 to 454873e Compare May 28, 2026 07:00
@renovate renovate Bot changed the title chore(deps): update rspack monorepo to v2.0.4 chore(deps): update rspack monorepo to v2.0.5 May 28, 2026
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.

0 participants