npm @rspack/cli 0.4.5
v0.4.5

latest releases: 1.1.0, 1.1.0-beta.0, 1.0.14...
10 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.