cyclonedx-webpack-plugin icon indicating copy to clipboard operation
cyclonedx-webpack-plugin copied to clipboard

[IDEA] `rspack` compatibility

Open PrettyCoffee opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

I tried running this plugin in rspack / rsbuild, but am getting the error:

TypeError: Cannot read properties of undefined (reading 'tap')

This, of course, is a webpack plugin and no rspack plugin. However, rspack is a lot more performant than webpack and rspack aims to be webpack plugin compatible. Therefore it would be a nice feature to have rspack compatibility.

Describe the solution you'd like

Compatibility with rspack / rsbuild

Additional context

Unfortunately I don't have any experience with bundler plugins, webpack or rspack. However, if you can point me into a direction where this problem may be originating from and are open to support rspack workarounds, I can check if I can contribute a PR for this. :)

PrettyCoffee avatar Feb 12 '24 10:02 PrettyCoffee

well, the first step would be to have a reproducible test bed, so see what you've tried and how it behaves.

Could you provide a reproducible test bed as a pullrequest? The test bed would would be somewhere in https://github.com/CycloneDX/cyclonedx-webpack-plugin/tree/master/tests/integration You will find several test beds already, just put yours next to it.

jkowalleck avatar Mar 10 '24 13:03 jkowalleck

Since this webpack plugin is a plugin for webpack - it utilizes a lot of webpack internals. I doubt that it will be compatible at any point.... feel free to change this.

jkowalleck avatar Mar 10 '24 13:03 jkowalleck