Skip to content

Commit

Permalink
[INJIVER-637] remove console logs from the build process
Browse files Browse the repository at this point in the history
Signed-off-by: srikanth716 <[email protected]>
  • Loading branch information
srikanth716 committed Oct 11, 2024
1 parent 2e88eb2 commit a809199
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions inji-verify/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './setupEnvironment'; // Ensure this is the first import
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
Expand Down
8 changes: 8 additions & 0 deletions inji-verify/src/setupEnvironment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if (process.env.NODE_ENV !== "development") {
console.log = () => {};
console.info = () => {};
console.debug = () => {};
console.assert = () => {};
}

export {};

0 comments on commit a809199

Please sign in to comment.