Skip to content
This repository was archived by the owner on Mar 16, 2020. It is now read-only.
This repository was archived by the owner on Mar 16, 2020. It is now read-only.

"mangle.exclude" doesn't seem to exclude the namespaces #77

@kettanaito

Description

@kettanaito

Hi. I'm using the latest version of this package - 0.2.0.

Issue

Providing mangle.exclude doesn't exclude the given class/method names from being mangled.

Minify options

new BabelMinifyPlugin({
      removeConsole: true,
      mangle: {
        topLevel: true,
        exclude: {
          /* I need to preserve the names of the classes listed below */
          'FormProvider': true,
          'Form': true,
          'connectField': true,
          'Condition': true,
          'Field': true
        }
      }
    })

Environment

  • Node: v6.9.5
  • OS: MacOS Sierra (10.12.6 (16G29))

Reproduce

  1. Clone/fork my repository.
  2. Checkout to dev/bundle-size branch if not there already.
  3. Run npm run build to build the project in production mode
  4. Examine the output bundle - excluded namespaces are still mangled.

Please help me resolve this issue. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions