davidwarrington / liquid-schema-plugin

Build reusable section schemas using Javascript
42 stars 4 forks source link

Webpack v5 - Compilation.assets deprecation warning #5

Closed davidwarrington closed 3 years ago

davidwarrington commented 3 years ago

When using this plugin with Webpack v5 the following warning is printed to the console:

(node:3507) [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_*.

Needs addressing before Webpack v5 is more widely adopted.