File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
packages/@vuepress/core/lib Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
- import Vue from 'vue'
2
- import { loadComponent } from '@internal/async-component'
3
-
4
1
/**
5
2
* Inject option to Vue SFC
6
3
* @param {object } options
@@ -38,13 +35,6 @@ export function findPageForPath (pages, path) {
38
35
}
39
36
}
40
37
41
- export function registerComponent ( key ) {
42
- return loadComponent ( key ) . then ( comp => {
43
- Vue . component ( key , comp . default )
44
- return comp . default
45
- } )
46
- }
47
-
48
38
/**
49
39
* Normalize config.
50
40
* This utility is mainly for plugin developers. For some
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module.exports = (options, ctx) => ({
14
14
*/
15
15
function importCode ( ) {
16
16
return `
17
- import { injectComponentOption, registerComponent } from '@app/util'
17
+ import { injectComponentOption } from '@app/util'
18
18
import rootMixins from '@internal/root-mixins'
19
19
import components from '@internal/layout-components'
20
20
import LayoutDistributor from '@app/components/LayoutDistributor.vue'
You can’t perform that action at this time.
0 commit comments