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

@chialab/esbuild-plugin-require-resolve

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-plugin-require-resolve

A file loader plugin for esbuild for `require.resolve` statements.

  • 0.18.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Esbuild Plugin Require Resolve • A file loader plugin for esbuild for `require.resolve` statements.

NPM


How it works

Esbuild Plugin Require Resolve looks for require.resolve('path/to/file.png') statements in JavaScript and TypeScript files and instructs esbuild to copy referenced files.


Install

npm i @chialab/esbuild-plugin-require-resolve -D
yarn add @chialab/esbuild-plugin-require-resolve -D

Usage

import esbuild from 'esbuild';
import requireResolvePlugin from '@chialab/esbuild-plugin-require-resolve';

await esbuild.build({
    plugins: [
        requireResolvePlugin(),
    ],
});

License

Esbuild Plugin Require Resolve is released under the MIT license.

Keywords

FAQs

Package last updated on 11 Jan 2024

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

  • 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