Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chialab/esbuild-rna

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-rna - npm Package Compare versions

Comparing version 0.14.17 to 0.14.19

11

lib/index.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc