We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7f33d7 commit 16df156Copy full SHA for 16df156
packages/@vuepress/shared-utils/src/moduleResolver.ts
@@ -88,16 +88,15 @@ class ModuleResolver {
88
this.allowedTypes = allowedTypes
89
this.load = load
90
this.cwd = cwd || process.cwd()
91
+ this.typePrefixLength = type.length + 1
92
if (org) {
93
this.nonScopePrefix = `${org}-${type}-`
94
this.scopePrefix = `@${org}/${type}-`
95
+ this.prefixSlicePosition = this.typePrefixLength + org.length + 1
96
} else {
97
this.nonScopePrefix = `${type}-`
98
+ this.prefixSlicePosition = this.typePrefixLength
99
}
- this.typePrefixLength = type.length + 1
- /* - */
- this.prefixSlicePosition = this.typePrefixLength + org.length + 1
100
- /* @ */
101
102
103
/**
0 commit comments