Skip to content

Commit

Permalink
bundle: remove working dir
Browse files Browse the repository at this point in the history
allow bundling and running apps from non root entries
  • Loading branch information
Aylur committed Nov 11, 2024
1 parent 1bc2c98 commit 0865e8c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/esbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,15 @@ func Bundle(infile, outfile, tsconfig string) {
}

result := api.Build(api.BuildOptions{
Color: api.ColorAlways,
LogLevel: api.LogLevelWarning,
EntryPoints: []string{infile},
Bundle: true,
Outfile: outfile,
Format: api.FormatESModule,
Platform: api.PlatformNeutral,
TsconfigRaw: tsconfig,
Write: true,
AbsWorkingDir: srcdir,
Color: api.ColorAlways,
LogLevel: api.LogLevelWarning,
EntryPoints: []string{infile},
Bundle: true,
Outfile: outfile,
Format: api.FormatESModule,
Platform: api.PlatformNeutral,
TsconfigRaw: tsconfig,
Write: true,
Define: map[string]string{
"SRC": fmt.Sprintf(`"%s"`, srcdir),
},
Expand Down

0 comments on commit 0865e8c

Please sign in to comment.