Skip to content

Commit 893a703

Browse files
authored
Fix LSP warnings and navigation on JS-related code (#1106)
1 parent 1264286 commit 893a703

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

cmd/astro-wasm/astro-wasm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build js && wasm
2+
13
package main
24

35
import (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/withastro/compiler
33
go 1.21
44

55
require (
6+
github.com/gkampitakis/go-snaps v0.5.2
67
github.com/google/go-cmp v0.5.9
78
github.com/iancoleman/strcase v0.2.0
89
github.com/lithammer/dedent v1.1.0
@@ -15,7 +16,6 @@ require (
1516
require (
1617
github.com/gkampitakis/ciinfo v0.3.0 // indirect
1718
github.com/gkampitakis/go-diff v1.3.2 // indirect
18-
github.com/gkampitakis/go-snaps v0.5.2 // indirect
1919
github.com/kr/pretty v0.3.1 // indirect
2020
github.com/kr/text v0.2.0 // indirect
2121
github.com/maruel/natural v1.1.1 // indirect

internal_wasm/utils/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build js && wasm
2+
13
package wasm_utils
24

35
import (

0 commit comments

Comments
 (0)