@plaudit/webpack-extensions 2.82.2 → 2.82.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/shared.js +2 -3
  2. package/package.json +1 -1
package/build/shared.js CHANGED
@@ -189,10 +189,9 @@ function getAssetsJson(compilation) {
189
189
  function getParsedAssetsJsonDataForEntrypoint(compilation, entrypoint, metadata) {
190
190
  const dest = metadata.dest;
191
191
  const parsedAssetJson = getAssetsJson(compilation);
192
- const scriptExtension = compilation.outputOptions.module ? exports.scriptWithModuleExtension : exports.scriptWithoutModuleExtension;
193
- const assetType = scriptOrStyleTest(metadata.absoluteSrc, scriptExtension);
192
+ const assetType = scriptOrStyleTest(metadata.absoluteSrc, exports.scriptExtension);
194
193
  const chunkFiles = [dest.destination, ...entrypoint.chunks.flatMap(chunk => Array.from(chunk.files))]
195
- .filter(chunkFile => scriptOrStyleTest(chunkFile, scriptExtension) === assetType);
194
+ .filter(chunkFile => scriptOrStyleTest(chunkFile, exports.scriptExtension) === assetType);
196
195
  for (const chunkFile of chunkFiles) {
197
196
  if (parsedAssetJson[chunkFile]) {
198
197
  return { assetName: chunkFile, assetData: parsedAssetJson[chunkFile] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.82.2",
3
+ "version": "2.82.3",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "/build"