Skip to content

Commit

Permalink
Only unpack assets if there are any
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Oct 8, 2024
1 parent 9032035 commit 85c017f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/worklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 85c017f

Please sign in to comment.