Skip to content

Commit

Permalink
Refactor(web-react): Use warning utility instead of console.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Feb 6, 2024
1 parent 046d6f3 commit 65d6577
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-react/src/utils/htmlParser.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import warning from '../common/utilities/warning';

let parse = null;

import('html-react-parser')
.then((htmlReactParser) => {
parse = htmlReactParser;
})
.catch(() =>
// eslint-disable-next-line no-console
console.warn(
warning(
false,
'`html-react-parser` is not installed and will be required in the next major version. Please install, missing peer dependency.',
),
);
Expand Down

0 comments on commit 65d6577

Please sign in to comment.