🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

esbuild-externals-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-externals-plugin

Plugin for having a bit more convenience over externals.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
114
100%
Maintainers
1
Weekly downloads
 
Created
Source

esbuild-externals-plugin

A plugin for esbuild to have a bit more control and convenience over externals. Most notably, introducing an external such as rxjs will not imply externals such as rxjs/operators. Instead, the latter would still be bundled. This way, there are no surprises.

Usage

Install the plugin:

npm i esbuild-externals-plugin --save-dev

Now in your esbuild configuration file you can do:

const { build } = require('esbuild');
const { externalsPlugin } = require('esbuild-externals-plugin');

build({
  // ...
  plugins: [externalsPlugin(['@angular/common', '@angular/core'])],
});

License

This plugin is released using the MIT license. For more information see the LICENSE file.

Keywords

plugin

FAQs

Package last updated on 23 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts