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.17.0 to 0.17.1

51

lib/Build.js

@@ -250,2 +250,3 @@ import path from 'path';

constructor(build, manager) {
this.initialOptions = { ...build.initialOptions };
build.initialOptions.metafile = true;

@@ -308,2 +309,10 @@ this.manager = manager;

/**
* Get initial build options.
* @returns The initial options object.
*/
getInitialOptions() {
return this.initialOptions;
}
/**
* Get build options.

@@ -1074,3 +1083,3 @@ * @returns The options object.

async emitChunk(options) {
const initialOptions = this.getOptions();
const buildOptions = this.getOptions();
const format = options.format || this.getOption('format');

@@ -1081,3 +1090,3 @@ const virtualOutDir = this.getFullOutDir() || this.getWorkingDir();

const config = {
...initialOptions,
...buildOptions,
format,

@@ -1087,11 +1096,11 @@ outdir: options.outdir ?

this.getFullOutDir(),
bundle: options.bundle ?? initialOptions.bundle,
splitting: format === 'esm' ? (options.splitting ?? initialOptions.splitting) : false,
platform: options.platform ?? initialOptions.platform,
target: options.target ?? initialOptions.target,
plugins: options.plugins ?? initialOptions.plugins,
external: options.external ?? initialOptions.external,
jsxFactory: ('jsxFactory' in options) ? options.jsxFactory : initialOptions.jsxFactory,
entryNames: initialOptions.chunkNames || initialOptions.entryNames,
write: initialOptions.write ?? true,
bundle: options.bundle ?? buildOptions.bundle,
splitting: format === 'esm' ? (options.splitting ?? buildOptions.splitting) : false,
platform: options.platform ?? buildOptions.platform,
target: options.target ?? buildOptions.target,
plugins: options.plugins ?? buildOptions.plugins,
external: options.external ?? this.getInitialOptions().external,
jsxFactory: ('jsxFactory' in options) ? options.jsxFactory : buildOptions.jsxFactory,
entryNames: buildOptions.chunkNames || buildOptions.entryNames,
write: buildOptions.write ?? true,
globalName: undefined,

@@ -1152,3 +1161,3 @@ outfile: undefined,

const manager = this.manager;
const initialOptions = this.getOptions();
const buildOptions = this.getOptions();
const format = options.format || this.getOption('format');

@@ -1169,11 +1178,11 @@ const entryPoints = options.entryPoints;

outdir: options.outdir ? this.resolvePath(options.outdir) : this.getFullOutDir(),
bundle: options.bundle ?? initialOptions.bundle,
splitting: format === 'esm' ? (options.splitting ?? initialOptions.splitting ?? true) : false,
platform: options.platform ?? initialOptions.platform,
target: options.target ?? initialOptions.target,
plugins: options.plugins ?? initialOptions.plugins,
external: options.external ?? initialOptions.external,
jsxFactory: ('jsxFactory' in options) ? options.jsxFactory : initialOptions.jsxFactory,
entryNames: initialOptions.chunkNames || initialOptions.entryNames,
write: initialOptions.write ?? true,
bundle: options.bundle ?? buildOptions.bundle,
splitting: format === 'esm' ? (options.splitting ?? buildOptions.splitting ?? true) : false,
platform: options.platform ?? buildOptions.platform,
target: options.target ?? buildOptions.target,
plugins: options.plugins ?? buildOptions.plugins,
external: options.external ?? this.getInitialOptions().external,
jsxFactory: ('jsxFactory' in options) ? options.jsxFactory : buildOptions.jsxFactory,
entryNames: buildOptions.chunkNames || buildOptions.entryNames,
write: buildOptions.write ?? true,
globalName: undefined,

@@ -1180,0 +1189,0 @@ outfile: undefined,

{
"name": "@chialab/esbuild-rna",
"type": "module",
"version": "0.17.0",
"version": "0.17.1",
"description": "A framework for esbuild plugins with transform and emit capabilities.",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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