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

@chialab/esbuild-plugin-bundle-dependencies

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-plugin-bundle-dependencies - npm Package Compare versions

Comparing version 0.12.7 to 0.12.22

11

lib/index.js
import { readFile } from 'fs/promises';
import pkgUp from 'pkg-up';
import { getRootDir } from '@chialab/esbuild-helpers';

@@ -23,4 +24,3 @@ /**

async setup(build) {
const options = build.initialOptions;
const { sourceRoot, absWorkingDir, bundle } = options;
const { bundle, external = [] } = build.initialOptions;
if (!bundle) {

@@ -30,8 +30,7 @@ return;

const rootDir = sourceRoot || absWorkingDir || process.cwd();
const external = [...(options.external || [])];
const rootDir = getRootDir(build);
const packageFile = await pkgUp({
cwd: rootDir,
});
if (packageFile) {

@@ -62,3 +61,3 @@ const packageJson = JSON.parse(await readFile(packageFile, 'utf-8'));

options.external = external;
build.initialOptions.external = external;
},

@@ -65,0 +64,0 @@ };

{
"name": "@chialab/esbuild-plugin-bundle-dependencies",
"type": "module",
"version": "0.12.7",
"version": "0.12.22",
"description": "Collect or exclude module dependencies to bundle.",

@@ -31,2 +31,3 @@ "main": "lib/index.js",

"dependencies": {
"@chialab/esbuild-helpers": "^0.12.22",
"pkg-up": "^3.1.0"

@@ -37,3 +38,3 @@ },

},
"gitHead": "3dea1f3e3e7ecb0c74e991ffbc6be2b93d0fb08c"
"gitHead": "4f148caa35416d70db6201f1994f55c77a30c256"
}
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