Skip to content

EvalSourceMapDevToolPlugin: add ability to filter out certain modules #6450

Closed

Description

@MagicDuck

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

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

Activity

  1. MagicDuck commented on Feb 6, 2018

    @MagicDuck
    ContributorAuthor

    I'll create a PR.

  2. MagicDuck commented on Feb 7, 2018

    @MagicDuck
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions