Socket
Book a DemoInstallSign in
Socket

@fal-works/esbuild-plugin-regexp-externals

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fal-works/esbuild-plugin-regexp-externals

esbuild plugin for specifying external modules with regular expressions.

1.1.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

esbuild-plugin-regexp-externals

A tiny esbuild plugin for specifying external modules with regular expressions.

Developed with: esbuild v0.8.39

Install

npm install -D @fal-works/esbuild-plugin-regexp-externals

Usage example

import { regexpExternals } from "@fal-works/esbuild-plugin-regexp-externals";

esbuild.build({
  bundle: true,
  entryPoints: ["src/main.js"],
  outfile: "dist/bundle.js",
  plugins: [regexpExternals(/^[^.]/)],
});

In this example any module paths that don't start with a dot will be marked as external.

Allowed expressions

See docs of esbuild plugins:

The allowed regular expression syntax is the syntax supported by Go's regular expression engine. This is slightly different than JavaScript. Specifically, look-ahead, look-behind, and backreferences are not supported.

Keywords

esbuild

FAQs

Package last updated on 04 Feb 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.