Necesito Programar Más

    ignore-not-found-export-webpack-plugin

    1.0.2 • Public • Published

    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

    ⚠️ 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

    Install

    npm i ignore-not-found-export-webpack-plugin

    DownloadsWeekly Downloads

    4,276

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • markogresak