EvalSourceMapDevToolPlugin: add ability to filter out certain modules

Do you want to request a feature or report a bug?

What is the current behavior?
Eval Sourcemap type can be specified through devtool option or through instantiating webpack.EvalSourceMapDevToolPlugin, but there is no option to include/exclude specific modules.

What is the expected behavior?

    new webpack.EvalSourceMapDevToolPlugin(({
        filename: sourceMapFlags.sourceMapFilename,
        module: true,
        columns: false,
        include: [/\.(js|ts)$|/],
        exclude: [/my_huge_legacy_module_which_crashes_devtools/]

If this is a feature request, what is motivation or use case for changing the behavior?
Excluding unnecessary/large modules from sourcemapping.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack 3.8

Author: Fantashit

1 thought on “EvalSourceMapDevToolPlugin: add ability to filter out certain modules

Comments are closed.