Socket
Socket
Sign inDemoInstall

esbuild-plugin-modify-entrypoints

Package Overview
Dependencies
24
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    esbuild-plugin-modify-entrypoints

esbuild plugin to modify entrypoint contents


Version published
Weekly downloads
215
decreased by-55.11%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 26 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc