From a7926a72b5fbd1cffd8e99cb3947c90e59841f8f Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 22 Jul 2017 18:16:33 +0200 Subject: [PATCH] fix: Better use of imports, save more than 1mb of bundle size. --- src/webui/src/components/Help/index.js | 4 ++-- src/webui/src/modules/home/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/src/components/Help/index.js b/src/webui/src/components/Help/index.js index f432c45c4..2c10cadbb 100644 --- a/src/webui/src/components/Help/index.js +++ b/src/webui/src/components/Help/index.js @@ -1,7 +1,7 @@ import React from 'react'; -import SyntaxHighlighter from 'react-syntax-highlighter'; -import {sunburst} from 'react-syntax-highlighter/dist/styles'; +import SyntaxHighlighter from 'react-syntax-highlighter/dist/highlight'; +import sunburst from 'react-syntax-highlighter/src/styles/sunburst'; import classes from './help.scss'; diff --git a/src/webui/src/modules/home/index.js b/src/webui/src/modules/home/index.js index 026b89507..ef0dc7ad0 100644 --- a/src/webui/src/modules/home/index.js +++ b/src/webui/src/modules/home/index.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import {Loading, MessageBox} from 'element-react'; -import {isEmpty} from 'lodash'; +import isEmpty from 'lodash/isEmpty'; import API from '../../../utils/api';