Hello,
I'm using this loader with both Webpack and Rspack, and it is working nicely.
However, when using it with Rspack, it requires installing Webpack, which I would like to avoid.
Would you be open to a PR that allows the use of Rspack or Webpack independently?
My idea is that when using a hook, when we get an instance of compiler, there is a compiler.webpack property (also in Rspack) with a full webpack export inside, which can avoid importing the webpack package itself.
Hello,
I'm using this loader with both Webpack and Rspack, and it is working nicely.
However, when using it with Rspack, it requires installing Webpack, which I would like to avoid.
Would you be open to a PR that allows the use of Rspack or Webpack independently?
My idea is that when using a hook, when we get an instance of
compiler, there is acompiler.webpackproperty (also in Rspack) with a full webpack export inside, which can avoid importing the webpack package itself.