obsolete-webpack-plugin icon indicating copy to clipboard operation
obsolete-webpack-plugin copied to clipboard

Support webpack 5

Open ylavoie opened this issue 4 years ago • 1 comments

Environment

  • Plugin Version: 0.5.6
  • Webpack Version: 5.38.1
  • OS Version: Linux
  • Node Version: 16.2.0
  • NPM Version: 7.13.0
  • Browser Version: n/a

Current Behavior

Building with webpack 5 gives:

(node:1600) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_PUSH] DeprecationWarning: chunk.files was changed from Array to Set (using Array method 'push' is deprecated)ush (/srv/ledgersmb/node_modules/webpack/lib/util/deprecation.js:108:3)
    at ObsoleteWebpackPlugin.additionalAssets (/srv/ledgersmb/node_modules/obsolete-webpack-plugin/src/index.js:74:25)

Expected Behavior

No errors

ylavoie avatar Jun 14 '21 23:06 ylavoie

Looks like the package hasn't been supported anymore. We have an improved/refactored version for webpack 5: https://github.com/AndrushkevichMikita/webpack-obsolete-plugin

Yegorich555 avatar Sep 27 '22 11:09 Yegorich555