Skip to content

Commit

Permalink
fix: parse stats.compilation.chunks as an array to remove deprecation…
Browse files Browse the repository at this point in the history
… warning (#6)
  • Loading branch information
adamstankiewicz authored Oct 18, 2021
1 parent ebc9487 commit 67a7136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NewRelicPlugin {
}
apply(compiler) {
compiler.hooks.done.tapPromise('new-relic-source-map-webpack-plugin', stats => {
const chunks = stats.compilation.chunks;
const chunks = Array.from(stats.compilation.chunks);
const assets = [];

chunks
Expand Down

0 comments on commit 67a7136

Please sign in to comment.