@chialab/esbuild-rna
Advanced tools
Comparing version 0.15.28 to 0.15.37
@@ -51,3 +51,3 @@ import path from 'path'; | ||
/** | ||
* @typedef {{ code: string, map?: import('@chialab/estransform').SourceMap|null, resolveDir?: string, errors?: import('esbuild').Message[], warnings?: import('esbuild').Message[] }} OnTransformResult | ||
* @typedef {{ code?: string, map?: import('@chialab/estransform').SourceMap|null, resolveDir?: string, errors?: import('esbuild').Message[], warnings?: import('esbuild').Message[] }} OnTransformResult | ||
*/ | ||
@@ -313,3 +313,5 @@ | ||
if (result) { | ||
code = result.code; | ||
if (result.code) { | ||
code = result.code; | ||
} | ||
if (result.warnings) { | ||
@@ -316,0 +318,0 @@ warnings.push(...result.warnings); |
{ | ||
"name": "@chialab/esbuild-rna", | ||
"type": "module", | ||
"version": "0.15.28", | ||
"version": "0.15.37", | ||
"description": "A framework for esbuild plugins with transform and emit capabilities.", | ||
@@ -38,3 +38,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "b6070e0cc98f6d8b7b4a8a59b9d88ee9364aebb1" | ||
"gitHead": "c6158f6389f7ddeb04c7015a2d63c5243442407a" | ||
} |
@@ -137,3 +137,3 @@ /// <reference types="node" /> | ||
export type OnTransformResult = { | ||
code: string; | ||
code?: string; | ||
map?: import('@chialab/estransform').SourceMap | null; | ||
@@ -140,0 +140,0 @@ resolveDir?: string; |
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
37788
927