js/esbuild: Batch: Avoid nil Instances slice
Ranging over a nil slice in Go works great, but is a hassle onced passed to JS.
This commit is contained in:
parent
a32c889a7b
commit
4cbd4ef991
1 changed files with 3 additions and 2 deletions
|
@ -506,8 +506,9 @@ func (b *batcher) doBuild(ctx context.Context) (*Package, error) {
|
|||
})
|
||||
|
||||
bt := scriptBatchTemplateContext{
|
||||
opts: vv,
|
||||
Import: impPath,
|
||||
opts: vv,
|
||||
Import: impPath,
|
||||
Instances: []scriptInstanceBatchTemplateContext{},
|
||||
}
|
||||
state.importResource.Set(bt.Import, vv.Compiled().Resource)
|
||||
predicate := func(k instanceID) bool {
|
||||
|
|
Loading…
Add table
Reference in a new issue