web-infra-dev / rsdoctor

A one-stop build analyzer for Rspack and Webpack.
https://rsdoctor.dev/
MIT License
331 stars 20 forks source link

feat(plugin): bundle analyze supports for rspack's banner plugin #341

Closed easy1090 closed 1 month ago

easy1090 commented 1 month ago

Summary

When BannerPlugin is used in the rspack project to add templates code to the assets, it will cause Rsdoctor's Bundle parsing to fail. In summary, Rsdoctor bundle analysis is required to support Banner Plugin.

// rspack.config.js

plugins: [
    new rspack.BannerPlugin({
      test: /\.js/,
      banner,
      raw: true,
    }),

]

Related Links

closes: #345

netlify[bot] commented 1 month ago

Deploy Preview for rsdoctor ready!

Name Link
Latest commit 4c1cf99d4b7bdd32522f5fd470091111c968288d
Latest deploy log https://app.netlify.com/sites/rsdoctor/deploys/664eff39ddcacd00085e3bcf
Deploy Preview https://deploy-preview-341--rsdoctor.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.