Joe Lencioni

Results 248 comments of Joe Lencioni

I think this can be accomplished by using BABEL_ENV On Sat, Apr 4, 2020, 4:25 AM Super Snager wrote: > Sometimes you may want to remove propTypes for production build,...

I think you could define a storybook env in your Babel config that doesn't include this plugin, and then start storybook with the BABEL_ENV env var set to match. On...

Ah good find! I suppose in this case, we can just leave that line alone and minification should be able to clean it up. Would you be interested in putting...

Actually, in your example, this shouldn't produce an error when NODE_ENV is production because the function is never called, right?

I see, I think these are two separate issues. @dirkholsopple your issue seems related to wrap mode skipping over propTypes removal for static properties on ClassExpressions. I put up a...

Although the minification of the custom propType code itself, as you linked to, is useful, I would ideally like to remove the import as well in the same way that...

Thanks for working on this feature reques! > It does feel a bit weird. For example, if I see "A" and "B" at the top of the listing, then open...

Thanks for the thoughtful response. I think what you outlined makes sense. My first thought was that you could hook into tags. Although I haven't used it before, Tagbar might...