Fix lodash not being tree shaked properly

This commit is contained in:
Pavel Djundik 2018-09-20 11:36:55 +03:00
parent def494533b
commit 3c4a9efe7e
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
</template>
<script>
import {throttle} from "lodash";
const throttle = require("lodash/throttle");
import NetworkList from "./NetworkList.vue";
import Chat from "./Chat.vue";

View File

@ -51,7 +51,7 @@
<script>
require("intersection-observer");
import {throttle} from "lodash";
const throttle = require("lodash/throttle");
const constants = require("../js/constants");
const clipboard = require("../js/clipboard");