mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user