Permalink
Browse files

perf(docs): only import debounce from lodash

  • Loading branch information...
pi0 committed Apr 1, 2018
1 parent 543c3c2 commit a6abd6dee748083f764bb867b13e8a568af1e0f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/plugins/play.js
@@ -1,4 +1,5 @@
import Vue from 'vue'
import debounce from 'lodash/debounce'
const VUE_REGEX = /<!-- (.*).vue -->/
const TEMPLATE_REGEX = /<template>([\s\S]*)<\/template>/
@@ -95,7 +96,6 @@ Vue.directive('play', (el, binding, vnode, oldVnode) => {
pre.className += ' live'
// eslint-ignore-next-line
const hljs = await import('highlightjs')
const { debounce } = await import('lodash')
pre.contentEditable = true
pre.onblur = () => {
hljs.highlightBlock(pre)

0 comments on commit a6abd6d

Please sign in to comment.