Rsdoctor v0.3 has been released!
The new features of Rsdoctor v0.3 include:
Considering that users may have their own specific rule definition requirements, Rsdoctor provides an external interface for users to customize their own rule checks in addition to the internal rules already available.
External extension interfaces need to be configured on the Rsdoctor plugin through the extends
field, and their configurations are also placed in the rules
field.
For more details, please refer to: Custom Extension Rules
Additionally, the use of custom rules can also be applied for user data collection and reporting. Data Reporting
Both Rspack and Webpack support the BannerPlugin, which is an built-in plugin that allows you to add specific content at the top or bottom of the generated chunks. The added code will affect the parsing capability of the bundle. Therefore, Rsdoctor has added support for the Banner Plugin.
Please refer to Support for BannerPlugin
Starting from Rspack@0.7.3, support for ESM Loader execution with .js
extension and type: module
configuration in package.json
is added (related issue). Therefore, Rsdoctor also supports the analysis of ESM Loader, mainly supporting the following two types:
.mjs
extension..js
extension and type: module
configuration in package.json
.Support for defining the port of Rsdoctor service has been added.
In some large repositories, the execution time for parsing bundles is significant. This is because the Parse Bundle analysis relies on AST parsing and processing, which can be time-consuming when there are a large number of files.
If this capability is not necessary, it can be selectively disabled using the supports.parseBundle
configuration. Here is an example:
Disabling the Parse Bundle capability only affects the ability to view the final bundled size and code of modules in the bundle (Bundled Code).