@chialab/esbuild-rna
Advanced tools
Comparing version 0.14.17 to 0.14.19
@@ -96,2 +96,3 @@ import path from 'path'; | ||
* @property {import('esbuild').Plugin[]} [plugins] | ||
* @property {string[]} [external] | ||
* @property {string[]} [inject] | ||
@@ -359,2 +360,3 @@ * @property {string|undefined} [jsxFactory] | ||
plugins: options.plugins ?? build.initialOptions.plugins, | ||
external: options.external ?? build.initialOptions.external, | ||
jsxFactory: ('jsxFactory' in options) ? options.jsxFactory : build.initialOptions.jsxFactory, | ||
@@ -392,14 +394,9 @@ write, | ||
} | ||
config.plugins = plugins; | ||
config.plugins = plugins.filter((plugin) => plugin.name !== 'external'); | ||
const result = /** @type {Result} */ (await esbuild.build(config)); | ||
const resolvedEntryPoint = path.resolve(rootDir, options.entryPoint); | ||
const outputs = result.metafile.outputs; | ||
const outFile = Object.entries(outputs) | ||
.filter(([output]) => !output.endsWith('.map')) | ||
.filter(([output]) => outputs[output].entryPoint) | ||
.find(([, { entryPoint }]) => | ||
resolvedEntryPoint === path.resolve(workingDir, /** @type {string} */ (entryPoint)) | ||
); | ||
.find(([output]) => outputs[output].entryPoint); | ||
@@ -406,0 +403,0 @@ if (!outFile) { |
{ | ||
"name": "@chialab/esbuild-rna", | ||
"type": "module", | ||
"version": "0.14.17", | ||
"version": "0.14.19", | ||
"description": "A framework for esbuild plugins with transform and emit capabilities.", | ||
@@ -38,3 +38,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "4f9b32f3e69e90556ecc9664a05ea1cb41ce1050" | ||
"gitHead": "866822cfd9abdbc17d0775ee49a5bdff2dbd30a4" | ||
} |
@@ -167,2 +167,3 @@ /// <reference types="node" /> | ||
plugins?: import("esbuild").Plugin[] | undefined; | ||
external?: string[] | undefined; | ||
inject?: string[] | undefined; | ||
@@ -169,0 +170,0 @@ jsxFactory?: string | undefined; |
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
36300
873