Skip to content

Commit ee2cdf8

Browse files
committed
asset libpath
1 parent 39dc89c commit ee2cdf8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/bundled/noembed.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ var libPath = sync.OnceValue(func() string {
3535
if testing.Testing() {
3636
return TestingLibPath()
3737
}
38-
dir := executableDir()
39-
40-
libdts := filepath.Join(dir, "lib.d.ts")
41-
if _, err := os.Stat(libdts); err != nil {
42-
panic(fmt.Sprintf("bundled: %v does not exist; this executable may be misplaced", libdts))
43-
}
38+
dir := "asset:///"
4439

4540
return tspath.NormalizeSlashes(dir)
4641
})

0 commit comments

Comments
 (0)