diff options
Diffstat (limited to 'resources/resource_transformers/js/build.go')
-rw-r--r-- | resources/resource_transformers/js/build.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/resource_transformers/js/build.go b/resources/resource_transformers/js/build.go index 23e28f675..34bc2cc12 100644 --- a/resources/resource_transformers/js/build.go +++ b/resources/resource_transformers/js/build.go @@ -15,7 +15,7 @@ package js import ( "fmt" - "io/ioutil" + "io" "os" "path" "path/filepath" @@ -77,7 +77,7 @@ func (t *buildTransformation) Transform(ctx *resources.ResourceTransformationCtx ctx.ReplaceOutPathExtension(".js") } - src, err := ioutil.ReadAll(ctx.From) + src, err := io.ReadAll(ctx.From) if err != nil { return err } @@ -98,7 +98,7 @@ func (t *buildTransformation) Transform(ctx *resources.ResourceTransformationCtx } if buildOptions.Sourcemap == api.SourceMapExternal && buildOptions.Outdir == "" { - buildOptions.Outdir, err = ioutil.TempDir(os.TempDir(), "compileOutput") + buildOptions.Outdir, err = os.MkdirTemp(os.TempDir(), "compileOutput") if err != nil { return err } |