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> </template>
<script> <script>
import {throttle} from "lodash"; const throttle = require("lodash/throttle");
import NetworkList from "./NetworkList.vue"; import NetworkList from "./NetworkList.vue";
import Chat from "./Chat.vue"; import Chat from "./Chat.vue";

View File

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