From ccd96da95f00e06d95f4492205ee2aa3527b3297 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Thu, 24 Sep 2020 12:56:08 +0100 Subject: [PATCH] changed require() to import --- src/HtmlUtils.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/HtmlUtils.tsx b/src/HtmlUtils.tsx index 5549316ab593..02d843ff1173 100644 --- a/src/HtmlUtils.tsx +++ b/src/HtmlUtils.tsx @@ -17,8 +17,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -require('katex/dist/katex.min.css'); - import React from 'react'; import sanitizeHtml from 'sanitize-html'; import * as linkify from 'linkifyjs'; @@ -29,6 +27,7 @@ import classNames from 'classnames'; import EMOJIBASE_REGEX from 'emojibase-regex'; import url from 'url'; import katex from 'katex'; +import 'katex/dist/katex.min.css'; import { AllHtmlEntities } from 'html-entities'; import SdkConfig from './SdkConfig';