Skip to content

Commit

Permalink
fix: SRC variable substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Dec 13, 2024
1 parent ce27d30 commit 27cd931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/esbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func Bundle(infile, outfile, tsconfig, cwd string) {
TsconfigRaw: tsconfig,
Write: true,
Define: map[string]string{
"SRC": fmt.Sprintf(`"%s"`, srcdir),
"SRC": fmt.Sprintf(`"%s"`, cwd),
},
Loader: map[string]api.Loader{
".js": api.LoaderJSX,
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.1.1

0 comments on commit 27cd931

Please sign in to comment.