google-fonts-webpack-plugin
google-fonts-webpack-plugin copied to clipboard
Does not work in RsPack
RsPack is plugin-compatible with WebPack however this plugin does not work there.
I could patch this line
compilation.namedChunks.set(this.options.name, this.chunk);
to
compilation.namedChunks[this.options.name] = this.chunk;
Which fixes build, however the font files created are corrupted (possibly from being handled as text; they are polluted with a byte sequence of EF BF BD).
Managed to fix it.
Needed to replace your bundled RawSource with compiler.webpack.sources.RawSource.
If you can release it, so it does not have to patched, that would be nice :)