Socket
Socket
Sign inDemoInstall

@esbuild-plugins/node-modules-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esbuild-plugins/node-modules-polyfill


Version published
Weekly downloads
738K
increased by0.75%
Maintainers
1
Weekly downloads
 
Created

What is @esbuild-plugins/node-modules-polyfill?

@esbuild-plugins/node-modules-polyfill is a plugin for esbuild that provides polyfills for Node.js core modules. This allows developers to use Node.js modules in environments where they are not natively supported, such as in the browser.

What are @esbuild-plugins/node-modules-polyfill's main functionalities?

Polyfill Node.js core modules

This feature allows you to polyfill Node.js core modules like 'fs', 'path', etc., so that they can be used in environments like the browser. The code sample demonstrates how to use the NodeModulesPolyfillPlugin with esbuild to bundle an application.

const esbuild = require('esbuild');
const { NodeModulesPolyfillPlugin } = require('@esbuild-plugins/node-modules-polyfill');

esbuild.build({
  entryPoints: ['app.js'],
  bundle: true,
  outfile: 'out.js',
  plugins: [NodeModulesPolyfillPlugin()]
}).catch(() => process.exit(1));

Other packages similar to @esbuild-plugins/node-modules-polyfill

FAQs

Package last updated on 01 Jan 2022

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