@chialab/esbuild-plugin-meta-url
Advanced tools
Comparing version 0.15.28 to 0.15.37
@@ -220,4 +220,20 @@ import path from 'path'; | ||
break; | ||
return; | ||
} | ||
const location = getLocation(code, startToken.start); | ||
warnings.push({ | ||
pluginName: 'meta-url', | ||
text: `Unable to resolve '${requestName}' reference.`, | ||
location: { | ||
file: args.path, | ||
namespace: args.namespace, | ||
...location, | ||
length: endToken.end - startToken.start, | ||
lineText: code.split('\n')[location.line - 1], | ||
suggestion: '', | ||
}, | ||
notes: [], | ||
detail: '', | ||
}); | ||
})); | ||
@@ -229,3 +245,5 @@ }); | ||
if (!helpers.isDirty()) { | ||
return; | ||
return { | ||
warnings, | ||
}; | ||
} | ||
@@ -232,0 +250,0 @@ |
{ | ||
"name": "@chialab/esbuild-plugin-meta-url", | ||
"type": "module", | ||
"version": "0.15.28", | ||
"version": "0.15.37", | ||
"description": "A file loader plugin for esbuild for constructed URLs using import metadata.", | ||
@@ -37,3 +37,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@chialab/esbuild-rna": "^0.15.28", | ||
"@chialab/esbuild-rna": "^0.15.37", | ||
"@chialab/estransform": "^0.15.28", | ||
@@ -46,3 +46,3 @@ "@chialab/node-resolve": "^0.15.28" | ||
}, | ||
"gitHead": "b6070e0cc98f6d8b7b4a8a59b9d88ee9364aebb1" | ||
"gitHead": "c6158f6389f7ddeb04c7015a2d63c5243442407a" | ||
} |
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
14193
245