@esbuild-plugins/node-resolve
Advanced tools
Comparing version 0.1.1 to 0.1.2
# @esbuild-plugins/node-resolve | ||
## 0.1.2 | ||
### Patch Changes | ||
- Added error param to onNonResolved | ||
## 0.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -14,3 +14,3 @@ import { OnResolveResult, Plugin } from 'esbuild'; | ||
namespace?: string | undefined; | ||
onNonResolved?: (id: string, importer: string) => OnResolveResult | undefined | null | void; | ||
onNonResolved?: (id: string, importer: string, e: Error) => OnResolveResult | undefined | null | void; | ||
onResolved?: (p: string, importer: string) => Promise<string | undefined | void | OnResolveResult> | any; | ||
@@ -17,0 +17,0 @@ resolveOptions?: Partial<ResolveOpts>; |
@@ -120,3 +120,3 @@ "use strict"; | ||
if (onNonResolved) { | ||
let res = yield onNonResolved(args.path, args.importer); | ||
let res = yield onNonResolved(args.path, args.importer, e); | ||
return res || null; | ||
@@ -123,0 +123,0 @@ } |
{ | ||
"name": "@esbuild-plugins/node-resolve", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -71,2 +71,3 @@ import { OnResolveArgs, OnResolveResult, Plugin } from 'esbuild' | ||
importer: string, | ||
e: Error, | ||
) => OnResolveResult | undefined | null | void | ||
@@ -146,2 +147,3 @@ onResolved?: ( | ||
args.importer, | ||
e, | ||
) | ||
@@ -148,0 +150,0 @@ return res || null |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58072
1006