Skip to content

Commit e5f4a78

Browse files
committed
runtime: alias #pipe to #|
1 parent 434241c commit e5f4a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/wasm/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func main() {
2929
k := wanix.New()
3030
k.AddModule("#web", web.New(k, inst))
3131
k.AddModule("#pipe", &pipe.Allocator{})
32+
k.AddModule("#|", &pipe.Allocator{}) // alias for #pipe
3233

3334
root, err := k.NewRoot()
3435
if err != nil {
@@ -38,7 +39,7 @@ func main() {
3839
root.Bind("#task", "task")
3940
root.Bind("#cap", "cap")
4041
root.Bind("#web", "web")
41-
root.Bind("#pipe", "#console")
42+
root.Bind("#|", "#console")
4243

4344
bundleBytes := inst.Get("bundle")
4445
if !bundleBytes.IsUndefined() {

0 commit comments

Comments
 (0)