github web-infra-dev/rspack v0.4.5

latest releases: v1.0.5, v1.0.4, v1.0.3...
8 months ago

Highlights

Support compilation.hooks.afterOptimizeModules hook

Called after modules optimization has completed.

compilation.hooks.afterOptimizeModules.tap("plugin_name", function(modules) {
  // do something
})

Support __webpack_is_included__

Test whether or not the given module is bundled by rspack.

if (__webpack_is_included__('./module-a.js')) {
  // do something
}

Support webpackPrefetch and webpackPreload

When doing dynamic import, it is allowed in the magic comments to tell the browser whether the resource will be used in the future.

import(
  /* webpackPrefetch: true */
  /* webpackPreload: true */
  'module'
);

Support error early bail

Fail out on the first error instead of tolerating it.

// rspack.config.js
module.exports = {
  //...
  bail: true,
};

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: v0.4.4...v0.4.5

Don't miss a new rspack release

NewReleases is sending notifications on new releases.