Skip to content

propTypes not being removed in production bundle #482

@tuananh

Description

@tuananh

Version: code in master at 84361b4

Steps to reproduce

i use bundle analyzer and run npm run build:dist

Expected Behavior

from babelrc

"env": {
    "production": {
      "plugins": [
        "transform-react-remove-prop-types",
      ],
    }
  },

i would expect to not see prop-types in dist package

Actual Behavior

in bundle analyzer when i do npm run build:dist, i still see prop-types package

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions