@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.
- package/build/shared.js +2 -3
- 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
|
|
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] };
|