yarn @rspack/cli 0.4.5
v0.4.5

latest releases: 0.7.0-beta.2-canary-89c6913-20240527004336, 0.7.0-beta.2-canary-89c6913-20240526004502, 0.7.0-beta.2-canary-89c6913-20240525004143...
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 cli release

NewReleases is sending notifications on new releases.