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

fork-ts-checker-webpack-plugin-limiter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fork-ts-checker-webpack-plugin-limiter

Limit the active forks to prevent EMFILE error when working with large number of entries.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
256
increased by11.79%
Maintainers
1
Weekly downloads
 
Created
Source

Fork Ts Checker Webpack Plugin Limiter

Limit the active forks to prevent EMFILE error when working with large number of entries.

CAVEAT

This plugin is inspired by TypeStrong/fork-ts-checker-webpack-plugin#424 and depends on alpha features at the moment of authoring, please use at your own risk.

Usage

In your webpack.config.js, add this plugin along with fork-ts-checker-webpack-plugin.

The only option is concurrency which limits the active forks allowed in the plugin, defaults to the number of CPUs in your workstation.

const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const ForkTsCheckerWebpackPluginLimiter = require("fork-ts-checker-webpack-plugin-limiter");

module.exports = {
  plugins: [
    new ForkTsCheckerWebpackPlugin(),
    new ForkTsCheckerWebpackPluginLimiter({ concurrency: 5 }),
  ],
  ...
  use: {
    loader: "ts-loader",
    options: {
      transpileOnly: true // for the plugin
    },
  },
  ...
};

Keywords

FAQs

Package last updated on 30 Apr 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