remove comment about not passing esbuild Sourcefile

This commit is contained in:
Brian Leishman 2024-09-21 18:08:53 -04:00 committed by GitHub
parent a5b287caaa
commit 461afe2eee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -448,9 +448,6 @@ 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,
ResolveDir: opts.resolveDir,