sindresorhus / strip-debug

Strip console, alert, and debugger statements from JavaScript code
MIT License
84 stars 15 forks source link

Convert to Babel plugin and add TypeScript types #24

Closed NotWoods closed 3 years ago

NotWoods commented 3 years ago

Fixes #20

This is based on #21 but preserves existing tests and repository infrastructure.

Since this is a total rewrite, I updated the code to use ES Modules based on the changes in is-fn.


IssueHunt Summary ### Referenced issues This pull request has been submitted to: - [#20: Convert to Babel plugin](https://issuehunt.io/repos/15830418/issues/20) ---
sindresorhus commented 3 years ago

Thanks :)

sindresorhus commented 3 years ago

@NotWoods Oops, I noticed a regression after merging. It should support any console method, not just console.log.