ElemeFE / obsolete-webpack-plugin

🌈 A Webpack plugin generates a browser-side standalone script that detects browser compatibility based on `Browserslist` and prompts website users to upgrade it.
MIT License
184 stars 14 forks source link

Support webpack 5 #18

Open ylavoie opened 3 years ago

ylavoie commented 3 years ago

Environment

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

Yegorich555 commented 2 years ago

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