You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dce for imported types (import type {Foo} from './Foo)
dce for the actual 'propTypes' property, both with the default assignment at end of file, and the the useStatic option (currently propTypes=null after minify)
The text was updated successfully, but these errors were encountered:
Hi, tried dead code and running into issues with deadCode: true
Error: Error: No substitution given for "NODE_ENV". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['NODE_ENV'])}
- { placeholderPattern: /^NODE_ENV$/ }
Consumers of a library should be able to access the library's proptypes in dev builds, but then be able to seamlessly strip them out for production.
See conversation on #70 (comment).
TODO:
The text was updated successfully, but these errors were encountered: