simonwep / pickr

🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
https://simonwep.github.io/pickr
MIT License
4.32k stars 284 forks source link

fix: webpack 5 deprecation warnings #316

Closed webdiscus closed 1 year ago

webdiscus commented 2 years ago

Hello Simon,

during Webpack process via npm run build are displayed deprecation warnings:

[DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API
[DEP_WEBPACK_CHUNK_ENTRY_MODULE] DeprecationWarning: Chunk.entryModule: Use new ChunkGraph API
[DEP_WEBPACK_MODULE_INDEX] DeprecationWarning: Module.index: Use new ModuleGraph API

This happens because is used outdated the webpack-fix-style-only-entries.

Warning

This plugin is not compatible with webpack 5. There is a fork here that is compatible: webpack-remove-empty-scripts

This PR replace the webpack-fix-style-only-entries with webpack-remove-empty-scripts package.