-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Sometimes you may want to remove propTypes for production build, but sometimes not.
For example when your library is imported in storybook, you want not to remove propTypes, because storybook reads it to show in docs page.
I think, that plugin should support this case - condition string should be configurable.
In storybook scenario wrap condition might look like this:
if (process.env.NODE_ENV !== "production" || process.env.NOT_REMOVE_PROP_TYPES) {
Metadata
Metadata
Assignees
Labels
No labels