Ignore webpack export not found warnings
npm install --save-dev ignore-not-found-export-webpack-plugin
or
yarn add --dev ignore-not-found-export-webpack-plugin
const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin');
module.exports = {
plugins: [new IgnoreNotFoundExportPlugin(options)],
// ...
};
Type: Object
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 TypeScriptinterface
(reference: webpack#7378, ts-loader#653)
@Strate for the idea and initial implementation.
MIT © Marko Grešak