redoc/config/webpack-utils.ts

6 lines
171 B
TypeScript
Raw Normal View History

import * as webpack from 'webpack';
export function webpackIgnore(regexp) {
return new webpack.NormalModuleReplacementPlugin(regexp, require.resolve('lodash.noop'));
}