{"id":21451,"library":"ignore-not-found-export-webpack-plugin","title":"IgnoreNotFoundExportPlugin","description":"Webpack plugin to suppress 'export not found' or 'ModuleDependencyWarning' warnings, commonly used when re-exporting TypeScript interfaces or other type-only exports that webpack cannot resolve. Current stable version 1.0.2 supports webpack >=4.0.0. The plugin is lightweight, with simple configuration via include/exclude patterns. It is a niche solution for a specific webpack warning noise issue, lacking active maintenance (last release 2020). Key differentiator: it targets a specific warning type, unlike general warning suppression plugins.","status":"maintenance","version":"1.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/markogresak/ignore-not-found-export-webpack-plugin","tags":["javascript","webpack","webpack-plugin"],"install":[{"cmd":"npm install ignore-not-found-export-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add ignore-not-found-export-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add ignore-not-found-export-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to function as a webpack plugin.","package":"webpack","optional":false}],"imports":[{"note":"This package does not export ESM; use CommonJS require.","wrong":"import IgnoreNotFoundExportPlugin from 'ignore-not-found-export-webpack-plugin';","symbol":"IgnoreNotFoundExportPlugin","correct":"const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');"},{"note":"Must use 'new' keyword when instantiating the plugin.","wrong":"module.exports = { plugins: [IgnoreNotFoundExportPlugin({ include: /\\.tsx?$/ })] };","symbol":"IgnoreNotFoundExportPlugin","correct":"module.exports = { plugins: [new IgnoreNotFoundExportPlugin({ include: /\\.tsx?$/ })] };"},{"note":"The package exports a single constructor, not a named export.","wrong":"const { IgnoreNotFoundExportPlugin } = require('ignore-not-found-export-webpack-plugin');","symbol":"IgnoreNotFoundExportPlugin","correct":"const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');"}],"quickstart":{"code":"const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: { filename: 'bundle.js' },\n  plugins: [\n    new IgnoreNotFoundExportPlugin({\n      include: [/\\.tsx?$/]\n    })\n  ]\n};","lang":"javascript","description":"Suppresses 'export not found' warnings for TypeScript files in webpack config."},"warnings":[{"fix":"Use include option to limit suppression to specific file types (e.g., TypeScript interfaces).","message":"Plugin may suppress useful warnings about missing imports, potentially hiding real issues.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider using webpack's built-in 'ignoreWarnings' option (webpack 5) or other custom plugin.","message":"Package last updated in 2020; using webpack 5 may require alternative approaches.","severity":"deprecated","affected_versions":"1.0.2"},{"fix":"Use require() instead of import statement.","message":"Does not work with ESM imports; requires CommonJS require for import.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');` then `new IgnoreNotFoundExportPlugin(...)`.","cause":"Using ES module import syntax or destructuring require incorrectly.","error":"TypeError: IgnoreNotFoundExportPlugin is not a constructor"},{"fix":"Check the exact path of the file causing warnings; adjust the regex in `include` option. For absolute paths, use a regex like `/.\\/src\\/.*\\.ts$/`.","cause":"The include/exclude pattern does not match the warning source.","error":"Warnings are still shown even after adding plugin"},{"fix":"Run `npm install --save-dev ignore-not-found-export-webpack-plugin`.","cause":"Package not installed; missing from node_modules.","error":"Cannot find module 'ignore-not-found-export-webpack-plugin'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}