Skip to content

Commit

Permalink
Correct deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 6, 2023
1 parent d0b10a1 commit dbbc27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ esbuild:
// check if package is deprecated
p, e := fetchPackageInfo(task.Pkg.Name, task.Pkg.Version)
if e == nil && p.Deprecated != "" {
fmt.Fprintf(buf, `console.warn("[npm] %%cdeprecated%%c %s@%s: %s", "color:red", "");%s`, task.Pkg.Name, task.Pkg.Version, npm.Deprecated, "\n")
fmt.Fprintf(buf, `console.warn("[npm] %%cdeprecated%%c %s@%s: %s", "color:red", "");%s`, task.Pkg.Name, task.Pkg.Version, p.Deprecated, "\n")
}

// add sourcemap Url
Expand Down

0 comments on commit dbbc27f

Please sign in to comment.