- Increase the minimum Node.js version to 14 (#43141).
- Output asset files for shared chunks, too (#41002).
- Use OpenSSL provider supported in Node 17+ when calling
crypto.createHash
(#40503). - Add new line at the end of generated
*.asset.php
files (#40753). - Calculate version hashes based on output file contents rather than input files and other Webpack internal state (#34969).
- Add the optional
externalizedReportFile
option (#35106).
- Increase the minimum Node.js version to 12 (#27934).
- Make the plugin compatible with webpack 5.
- Include TypeScript type declarations (#22498)
- The plugin now supports an optional
combinedOutputFile
option that is useful only when anothercombineAssets
option is enabled. It allows providing a custom output file for the generated single assets file (#20844).
- The plugin now supports optional
combineAssets
option. When this flag is set totrue
, all information about assets is combined into a singleassets.(json|php)
file generated in the output directory (#20330).
- The plugin now adds, for each entry point, an asset file saved by default in PHP format that declares an object with the list of WordPress script dependencies for the entry point (#17298). There is also an option to use JSON as the output format. The shape of metadata is also different from the previous version. Note that the file name has also changed from
*.deps.json
to*.asset.json
or*.asset.php
. References to the*.deps.json
filename will need to be updated, even if you choose to use the JSON formatted file. Read more in the README file.
- Fix missing file entry for
util.js
inpackage.json
- Introduce the
@wordpress/dependency-extraction-webpack-plugin
package.