Skip to content

Commit

Permalink
Prevent panic when 'options' value is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Sep 12, 2024
1 parent 4a3d600 commit 66e46d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (b *Bundle) populateExports(updateOptions bool, bi *BundleInstance) error {
}
switch k {
case consts.Options:
if !updateOptions {
if !updateOptions || v == nil {
continue
}
var data []byte
Expand Down

0 comments on commit 66e46d0

Please sign in to comment.