Socket
Socket
Sign inDemoInstall

ignore-not-found-export-webpack-plugin

Package Overview
Dependencies
77
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ignore-not-found-export-webpack-plugin

Ignore webpack export not found warnings


Version published
Maintainers
1
Install size
5.89 kB
Created

Readme

Source

IgnoreNotFoundExportPlugin Build Status

Ignore webpack export not found warnings

Install

npm install --save-dev ignore-not-found-export-webpack-plugin

or

yarn add --dev ignore-not-found-export-webpack-plugin

Usage

:warning: This plugin can remove useful info about missing imports, which might deteriorate the development experience. Be careful with how you configure this plugin.

const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');

module.exports = {
  plugins: [new IgnoreNotFoundExportPlugin(options)],
  // ...
};

API

IgnoreNotFoundExportPlugin([options])

options

Type: Object

include

Type: RegExp|RegExp[]
Default: /./ (allow any path)

A regular expression or an array of regular expressions of import paths to include.

Example:

  • [/\.tsx?$/]: ignore warnings only for imported .ts or .tsx files. Useful if re-exporting TypeScript interface (reference: webpack#7378, ts-loader#653)

Credit

@Strate for the idea and initial implementation.

License

MIT © Marko Grešak

Keywords

FAQs

Last updated on 12 Feb 2021

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