@loadable/webpack-plugin
Advanced tools
Comparing version 5.15.0 to 5.15.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [5.15.1](https://github.com/gregberge/loadable-components/compare/v5.15.0...v5.15.1) (2021-08-17) | ||
### Bug Fixes | ||
* add cachedAssets to stats options ([#779](https://github.com/gregberge/loadable-components/issues/779)) ([73b17fd](https://github.com/gregberge/loadable-components/commit/73b17fd067579b1c5d38eba00e157964e0930a94)), closes [#770](https://github.com/gregberge/loadable-components/issues/770) | ||
* SubResourceIntegrity ([#803](https://github.com/gregberge/loadable-components/issues/803)) ([9b34195](https://github.com/gregberge/loadable-components/commit/9b34195627c65372a7c834311c32dfcbd5b7fedd)) | ||
# [5.15.0](https://github.com/gregberge/loadable-components/compare/v5.14.2...v5.15.0) (2021-05-08) | ||
@@ -8,0 +20,0 @@ |
@@ -25,2 +25,3 @@ "use strict"; | ||
assets: true, | ||
cachedAssets: true, | ||
chunks: false, | ||
@@ -41,2 +42,14 @@ chunkGroups: true, | ||
}; | ||
}); // update namedChunkGroups with integrity from webpack-subresource-integrity if available | ||
Object.values(stats.namedChunkGroups).forEach(namedChunkGroup => { | ||
namedChunkGroup.assets.forEach(namedChunkGroupAsset => { | ||
if (!namedChunkGroupAsset.integrity) { | ||
const asset = stats.assets.find(a => a.name === namedChunkGroupAsset.name) || {}; | ||
if (asset.integrity) { | ||
namedChunkGroupAsset.integrity = asset.integrity; | ||
} | ||
} | ||
}); | ||
}); | ||
@@ -43,0 +56,0 @@ const result = JSON.stringify(stats, null, 2); |
{ | ||
"name": "@loadable/webpack-plugin", | ||
"description": "Webpack plugin for loadable (required for SSR).", | ||
"version": "5.15.0", | ||
"version": "5.15.1", | ||
"main": "lib/index.js", | ||
@@ -33,3 +33,3 @@ "repository": "git@github.com:gregberge/loadable-components.git", | ||
}, | ||
"gitHead": "e74b3c9d9d1c2c54af12b5060dd381a10ac1e8ae" | ||
"gitHead": "629c80e42eea605a32dafd7b52faf3140e1aab28" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13128
118