mpegts.js icon indicating copy to clipboard operation
mpegts.js copied to clipboard

[Bug] use Mpegts.js with "enableWorker: true",some error uncaught in worker.

Open BanShan-Alec opened this issue 2 years ago • 1 comments

环境: "mpegts.js": "^1.7.3", “Chrome/116.0.5845.228” "webpack": "^5.81.0"

问题描述: 如果 mpegts.js 开启enableWorker,webpack开启默认的压缩混淆;则会出现bug(关闭minimize则没问题)

optimization: {
    minimize: true,
    minimizer: ['...', new CssMinimizerPlugin()],
},

Snipaste_2023-11-22_14-14-26 Snipaste_2023-11-22_14-15-34

压缩混淆后的worker代码 a0a2e36f-6843-455a-9a33-3ba0b57daa92.json

BanShan-Alec avatar Nov 22 '23 06:11 BanShan-Alec

@BanShan-Alec

I have tested the official build (which means build by hitting npm run build inside mpegts.js directory) and it works well under the minimized release build with enableWorker: true.

xqq avatar Dec 10 '23 07:12 xqq