npm @rspack/cli 0.5.5
v0.5.5

latest releases: 0.7.6-canary-fd6c40d-20240918093542, 1.0.5, 1.0.4...
6 months ago

What's Changed

Highlight

Added diagnostic suggestions for extension-less module resolutions

This added suggestions for potential files that can be resolved while the bundler's configuration may not be correct. This might also be helpful for those whose project was migrated from lower versions.

Project tree:

<PROJECT_ROOT>/
├─ a.txt
└─ index.js

Resolve error:

ERROR in ./index.js
  × Resolve error: Can't resolve './a' in '/'
   ╭────
 1 │ import a from './a';
   ·               ──────
   ╰────
  help: Found the module './a.txt' exists, but its extension is not listed in the `resolve.extensions`. Here are some possible solutions:

        1. add the extension `".txt"` to `resolve.extensions` in your rspack configuration
        2. use '../a.txt' instead of './a'

The error suggests to add the extension ".txt" to resolve.extensions, as, by default, rspack does not support for extension-less module requests like "txt".

Kudos to @luhc228.

Performance Improvements ⚡

  • perf(code-splitting): optimize modules intersection by @JSerFeng in #5745

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.5.4...v0.5.5

Don't miss a new cli release

NewReleases is sending notifications on new releases.