Skip to content

babel-plugin-transform-remove-console is not run for production where it matters #1055

@Crare

Description

@Crare

looking at the example it says:

npm install babel-plugin-transform-remove-console --save-dev

Which means it will be saved to devdependencies. It will not be run in production is NODE_ENV is set to production. I think the installation example is little bit bad because of this. If you set NODE_ENV=production it will not install and run devDependencies at all.

I think the installation instructions should be changed to:

npm install babel-plugin-transform-remove-console

Please do correct me if I'm wrong.
Or is this not meant for production use? Maybe state that then.

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