github web-infra-dev/rspack v2.0.5

10 hours ago

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: v2.0.4...v2.0.5

Don't miss a new rspack release

NewReleases is sending notifications on new releases.