From 85c017f0294f38efa5c7c0738b7bc1f389bb8058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Tue, 8 Oct 2024 13:06:00 +0200 Subject: [PATCH] Only unpack assets if there are any --- shared/worklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/worklet.js b/shared/worklet.js index b7eea79..c863260 100644 --- a/shared/worklet.js +++ b/shared/worklet.js @@ -86,7 +86,7 @@ exports.start = function start (filename, source, assets) { if (assets && path.extname(url.href) === '.bundle') { const bundle = Bundle.from(source) - if (bundle.id === null) assets = null + if (bundle.id === null || bundle.assets.length === 0) assets = null else { const id = crypto.createHash('blake2b256').update(bundle.id).digest('hex')