Skip to content

Commit 93fc515

Browse files
committed
chore: testing ssr
1 parent ebf9350 commit 93fc515

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/VueEditor.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
</template>
1616

1717
<script>
18-
import Quill from "quill";
18+
import Vue from "vue";
1919
import defaultToolbar from "@/helpers/default-toolbar";
2020
import oldApi from "@/helpers/old-api";
2121
import mergeDeep from "@/helpers/merge-deep";
2222
import MarkdownShortcuts from "@/helpers/markdown-shortcuts";
2323
24+
let Quill;
25+
if (!Vue.prototype.$isServer) Quill = require("quill");
26+
console.log("Vue.prototype.$isServer: ", Vue.prototype.$isServer);
27+
2428
export default {
2529
name: "VueEditor",
2630
mixins: [oldApi],

0 commit comments

Comments
 (0)