webpack-bundle-analyzer
webpack-bundle-analyzer copied to clipboard
migrate on webpack built-in logger
Issue description
Migrate on built-in webpack logger API https://webpack.js.org/api/logging/
Technical info
- Webpack Bundle Analyzer version: latest
- Webpack version: any
- Node.js version: any
- npm/yarn version: any
- OS: any
Debug info
Allow to filter and configure logger options from configuration(s) + allow to collect logs from stats
What other Webpack plugins were used?
Irrelevant
This would make webpack-bundle-analyzer
only compatible with webpack v4.39.0 and forwards. Right now we're compatible with even webpack v3 if I remember correctly, so this would be a major version bump.
We can't avoid breaking change using:
const logger = logging.getLogger ? logging.getLogger('webpack-bundle-analyzer') : oldLogger;
Ah cool idea! That would be a possible idea.
I would love to give it a shot 🙌