perf: load codemirror into a chunk for faster LCP (#641)

This commit is contained in:
pataar authored and GitHub committed 2022-02-15 21:14:01 +01:00
1 parent 844ddc2393
commit 6563b7ce47
2 files changed
+15 -4

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import Vue from 'vue'
/**
* Load code mirror into a chunk
*/
export default Vue.component(
'codemirror-async',
// A dynamic import returns a Promise.
() => import('@/components/inputs/Codemirror.vue')
)