deps: Update to esbuild v0.8.39

Fixes #8189
This commit is contained in:
Bjørn Erik Pedersen
2021-02-01 10:57:38 +01:00
parent b2a48dce58
commit 440fdb0eb9
3 changed files with 6 additions and 2 deletions

View File

@@ -391,9 +391,11 @@ func toBuildOptions(opts Options) (buildOptions api.BuildOptions, err error) {
Tsconfig: opts.tsConfig,
// Note: We're not passing Sourcefile to ESBuild.
// This makes ESBuild pass `stdin` as the Importer to the import
// resolver, which is what we need/expect.
Stdin: &api.StdinOptions{
Contents: opts.contents,
Sourcefile: opts.sourcefile,
ResolveDir: opts.resolveDir,
Loader: loader,
},