Open scinos opened 3 years ago
Same here, below warning is thrown, however compilation works as expected for RTL but this warning must be fix @romainberger -
[DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_LENGTH] DeprecationWarning: Compilation.chunks was changed from Array to Set (using Array property 'length' is deprecated)
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:34634) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_INDEXER] DeprecationWarning: Compilation.chunks was changed from Array to Set (indexing Array is deprecated)
(node:34634) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_PUSH] DeprecationWarning: chunk.files was changed from Array to Set (using Array method 'push' is deprecated)
(node:34634) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
Is this repository still maintained?
I created a PR with fixing these deprecation warnings https://github.com/romainberger/webpack-rtl-plugin/pull/37#issue-737335086
Any updates 👀 ?
When i use Webpack 5 in node i am getting same error.
(node:17184) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_LENGTH] DeprecationWarning: Compilation.chunks was changed from Array to Set (using Array property 'length' is deprecated)
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:17184) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_INDEXER] DeprecationWarning: Compilation.chunks was changed from Array to Set (indexing Array is deprecated)
(node:17184) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(node:17184) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_PUSH] DeprecationWarning: chunk.files was changed from Array to Set (using Array method 'push' is deprecated)
When using with Webpack 5, the following deprecation warnings are raised: