Skip to content

Commit

Permalink
fix($shared-utils): fail to resolve markdown-it plugins (close vuejs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Apr 8, 2020
1 parent a6ae508 commit 5af82bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/@vuepress/shared-utils/src/moduleResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,15 @@ class ModuleResolver {
this.allowedTypes = allowedTypes
this.load = load
this.cwd = cwd || process.cwd()
this.typePrefixLength = type.length + 1
if (org) {
this.nonScopePrefix = `${org}-${type}-`
this.scopePrefix = `@${org}/${type}-`
this.prefixSlicePosition = this.typePrefixLength + org.length + 1
} else {
this.nonScopePrefix = `${type}-`
this.prefixSlicePosition = this.typePrefixLength
}
this.typePrefixLength = type.length + 1
/* - */
this.prefixSlicePosition = this.typePrefixLength + org.length + 1
/* @ */
}

/**
Expand Down

0 comments on commit 5af82bb

Please sign in to comment.