Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit cd2515e

Browse files
committed
Trim down lodash
1 parent 4edb7d7 commit cd2515e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"homepage": "https://github.com/CroudSupport/vue-quill#readme",
3232
"dependencies": {
33+
"lodash.defaultsdeep": "^4.6.0",
3334
"quill": "^1.2.2",
3435
"quill-render": "^1.0.5"
3536
}

src/Quill.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</template>
66

77
<script>
8-
import _ from 'lodash'
8+
import defaultsDeep from 'lodash.defaultsdeep'
99
import Quill from 'quill'
1010
import GrammarlyInline from './formats/GrammarlyInline'
1111
@@ -80,7 +80,7 @@
8080
8181
Quill.register(GrammarlyInline)
8282
83-
this.editor = new Quill(this.$refs.quill, _.defaultsDeep(this.config, this.defaultConfig))
83+
this.editor = new Quill(this.$refs.quill, defaultsDeep(this.config, this.defaultConfig))
8484
8585
if (this.content && this.content !== '') {
8686
if (this.output != 'delta') {

0 commit comments

Comments
 (0)