Skip to content

Commit

Permalink
Fix - remove webpackIgnore for zstd and lzma
Browse files Browse the repository at this point in the history
It not necessary for builds where these modules ignored by other mean
  • Loading branch information
linev committed Aug 21, 2024
1 parent a799bcf commit 6b818ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/io.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ async function R__unzip(arr, tgtsize, noalert, src_shift) {
if (fmt === 'ZSTD') {
const promise = internals._ZstdStream
? Promise.resolve(internals._ZstdStream)
: (isNodeJs() ? import('@oneidentity/zstd-js') : import(/* webpackIgnore: true */ './base/zstd.mjs'))
: (isNodeJs() ? import('@oneidentity/zstd-js') : import('./base/zstd.mjs'))
.then(({ ZstdInit }) => ZstdInit()).then(({ ZstdStream }) => { internals._ZstdStream = ZstdStream; return ZstdStream; });
return promise.then(ZstdStream => {
const data2 = ZstdStream.decompress(uint8arr),
Expand All @@ -2045,7 +2045,7 @@ async function R__unzip(arr, tgtsize, noalert, src_shift) {
return nextPortion();
});
} else if (fmt === 'LZMA') {
return import(/* webpackIgnore: true */ './base/lzma.mjs').then(lzma => {
return import('./base/lzma.mjs').then(lzma => {
const expected_len = (getCode(curr + 6) & 0xff) | ((getCode(curr + 7) & 0xff) << 8) | ((getCode(curr + 8) & 0xff) << 16),
reslen = lzma.decompress(uint8arr, tgt8arr, expected_len);
fullres += reslen;
Expand Down

0 comments on commit 6b818ce

Please sign in to comment.