JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 272 forks source link

fix(additional-assets): adds missing method #433

Closed Toolo closed 3 years ago

Toolo commented 3 years ago

What kind of change does this PR introduce? (bugfix, feature, docs update, improvement)

bugfix

What is the current behavior? (You can also link to an open issue here)

When using the plugin with extract: true config option along compression-webpack-plugin, webpack.cache.PackFileCacheStrategy crashes.

What is the new behavior (if this is a feature change)?

Defining this method fixes the issue with my current build configuration.

Found the expected asset structure here: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/webpack/index.d.ts#L924

Does this PR introduce a breaking change?

No, it doesn't

Please check if the PR fulfills contributing guidelines