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

@dtinsight/auto-polyfills-webpack-plugin

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dtinsight/auto-polyfills-webpack-plugin

a webpack plugin for auto generate polyfills

  • 2.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by200%
Maintainers
6
Weekly downloads
 
Created
Source

A webpack plugin for auto import polyfills using core-js custom build, you can combine it with esbuild-loader because esbuild-loader don't do auto polyfills

Getting Started

  1. Install as devDependencies:
pnpm install @dtinsight/auto-polyfills-webpack-plugin -D
  1. then add it into webpack plugins config:
config.plugins.push(
      new AutoPolyfillsWebpackPlugin();
    );

and a minified file will be generated in project root (or custom with option cwd), then you should commit it for reused.

Options

type IOpts = {
    cwd?: string; // cwd, default value is `process.cwd()`
    browserslistPath?: string; // default value is .browserslistrc in root directory
    hashType?: string; // crypto type, default value is md5
    customPrefix?: string; //custom polyfill prefix, default value is 'dt'
    excludeCoreJsModules?: string[]; //exclude core-js modules.
};

FAQs

Package last updated on 23 Aug 2023

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