Socket
Book a DemoInstallSign in
Socket

ignore-not-found-export-webpack-plugin-fork

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore-not-found-export-webpack-plugin-fork

Ignore webpack export not found warnings

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

IgnoreNotFoundExportPlugin Tests

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

webpack

FAQs

Package last updated on 18 Nov 2021

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