rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Bug]: support svg-chunk-webpack-plugin

Open singh-jay opened this issue 1 year ago • 1 comments

System Info

System: OS: macOS 14.3.1 CPU: (8) arm64 Apple M1 Memory: 43.17 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.5.0 - /opt/homebrew/bin/node npm: 10.2.4 - /opt/homebrew/bin/npm Browsers: Brave Browser: 121.1.62.165 Chrome: 119.0.6045.199 Safari: 17.3.1

Details

I'm trying to migrate our projects to rspack, everything is working fine except the svg sprites. Tried different plugins but got a similar error. I tried to find a solution to use svg sprites but could not, any guide on how to use svg-sprite with rspack will be helpful.

Getting error - /node_modules/svg-chunk-webpack-plugin/lib/loader.js:20 this._module.factoryMeta = this._module.factoryMeta || {}; ^

TypeError: Cannot read properties of undefined (reading 'factoryMeta') at Object.SvgChunkWebpackLoader

Reproduce link

https://github.com/singh-jay/svg-chunk-plugin-test

Reproduce Steps

  1. clone the repo
  2. run bun install
  3. run bun dev

singh-jay avatar Feb 25 '24 14:02 singh-jay

Rspack does not support _module and factoryMeta yet, if you are willing, welcome to contribute

LingyuCoder avatar Apr 23 '24 06:04 LingyuCoder

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] avatar Jun 22 '24 06:06 stale[bot]