New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-modify-entrypoints

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

esbuild-plugin-modify-entrypoints

esbuild plugin to modify entrypoint contents

0.2.0
latest
Source
npm
Version published
Weekly downloads
230
64.29%
Maintainers
1
Weekly downloads
 
Created
Source

esbuild-plugin-modify-entrypoints

Build Status

Install

npm install esbuild-plugin-modify-entrypoints -D

Usage

Add the plugin to your esbuild plugins.

import { build } from 'esbuild';

import { modifyEntrypointsPlugin } from 'esbuild-plugin-modify-entrypoints';

const results = await build({
  entryPoints: ['your-file.ts'],
  plugins: [
    modifyEntrypointsPlugin(({ contents }) => {
      return {
        contents: `console.log('First');\n${contents}`,
        loader: 'ts',
      };
    }),
  ],
});

Keywords

esbuild

FAQs

Package last updated on 13 May 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