Skip to content

Commit

Permalink
Merge pull request #9 from ericclemmons/4-NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons authored Apr 26, 2022
2 parents 09d0033 + 8849558 commit f656542
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-weeks-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"click-to-react-component": patch
---

Remove ClickToComponent from production builds
5 changes: 4 additions & 1 deletion packages/click-to-react-component/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export { ClickToComponent } from './src/ClickToComponent'
import { ClickToComponent as Component } from './src/ClickToComponent'

export const ClickToComponent =
process.env.NODE_ENV === 'development' ? Component : () => null

0 comments on commit f656542

Please sign in to comment.