aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-12-10 21:05:02 +0300
committerGravatar Vitaly Takmazov2020-12-10 21:05:02 +0300
commit0121e2dd9093007315382aa505e563675a8d5112 (patch)
treec8e0206f9e3092d2dd31f711b030ca9aa1fc143a
parentcd7c4be002881199b7ab45d92465c30813adbe15 (diff)
scripts: do not import modules twice
-rw-r--r--src/main/assets/scripts.js1
-rw-r--r--webpack.config.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js
index 8f6dd961..ef02dca8 100644
--- a/src/main/assets/scripts.js
+++ b/src/main/assets/scripts.js
@@ -2,6 +2,7 @@ require('element-closest/browser');
require('classlist.js');
require('url-polyfill');
require('formdata-polyfill');
+require('whatwg-fetch');
import { embedLinksToX, embedAll, format } from './embed';
import renderIcons from './icon';
import svg4everybody from 'svg4everybody';
diff --git a/webpack.config.js b/webpack.config.js
index 77844515..1d5f722b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -21,8 +21,6 @@ module.exports = (env, argv) => {
'core-js/modules/es.symbol',
'core-js/modules/es.weak-map',
'core-js/modules/web.dom-collections.iterator',
- 'url-polyfill',
- 'whatwg-fetch',
__dirname + '/src/main/assets/scripts.js',
__dirname + '/src/main/assets/style.css',
require.resolve('evil-icons/assets/sprite.svg'),