web-infra-dev/rspack
 Watch   
 Star   
 Fork   
1 days ago
rspack

v1.7.0-beta.1

What's Changed

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.0-beta.0...v1.7.0-beta.1

7 days ago
rspack

v1.7.0-beta.0

Highlights 💡

🎈 Upgrade SWC

The latest version of SWC enhances the compatibility of Wasm plugins. This means future upgrades of Rspack and SWC will almost no longer break SWC Wasm plugins. Additionally, the SWC upgrade brings a 10% performance improvement to the parser.

✅ Enable lazy compilation by default

Since Rspack v1.5 has stabilized Lazy Compilation, we are now enabling it by default for dynamic imports cases when the target is web.

export default defineConfig({
  lazyCompilation: {
    imports: true,
  },
});

🎯 Stablize several experimental configurations

In the previous releases, the experimental features experiments.lazyBarrel, experiments.inlineConst, experiments.inlineEnum were introduced to enable cross-module inlining optimizations for constants. These optimizations improve minifiers' ability to perform precise static analysis, eliminate unused code branches, and further reduce bundle size.

After thorough validation, we are now promoting these features from experimental to stable.

export default  {
  experiments: {
-   inlineConst: true,
-   inlineEnum: true,
-   lazyBarrel: true,
-   typeReexportsPresence: true,
  },
  module: {
    parser: {
      javascript: {
-      inlineConst: true,
       typeReexportsPresence: true,
      },
    },
  },
  optimization: {
+  inlineExports: true,
  },
}

What's Changed

Performance Improvements ⚡

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.7...v1.7.0-beta.0

7 days ago
rspack

v1.6.8

What's Changed

Bug Fixes 🐞

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.7...v1.6.8

15 days ago
rspack

v1.6.7

Highlights 💡

🎉 Support for import.meta.filename, import.meta.dirname, and import.meta.resolve

Rspack now supports the import.meta.filename, import.meta.dirname, and import.meta.resolve meta properties in ESM modules. These properties provide a standardized way to access file and directory paths in ES modules, similar to the CommonJS __filename and __dirname variables:

// Get the absolute path of the current module file
console.log(import.meta.filename);
// e.g., "/path/to/project/src/index.js"

// Get the directory path of the current module
console.log(import.meta.dirname);
// e.g., "/path/to/project/src"

// Resolve a module specifier to an absolute URL
const resolvedPath = import.meta.resolve('./utils.js');

Thanks to @magic-akari for this contribution!

What's Changed

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.6...v1.6.7

22 days ago
rspack

v1.6.6

Highlights 💡

Compact module factories

Rspack now generates a more compact module factory format that trims the wrapper function. Benchmarks show this reduces bundle size by about 1% before gzip.

image

What's Changed

Performance Improvements ⚡

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.5...v1.6.6

29 days ago
rspack

v1.6.5

What's Changed

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.4...v1.6.5

2025-11-18 19:06:15
rspack

v1.6.4

What's Changed

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.3...v1.6.4

2025-11-13 14:53:53
rspack

v1.6.3

What's Changed

New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.2...v1.6.3

2025-11-12 21:10:49
rspack

v1.6.2

What's Changed

Performance Improvements ⚡

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.1...v1.6.2

2025-11-05 17:22:11
rspack

v1.6.1

What's Changed

Performance Improvements ⚡

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.0...v1.6.1