Skip to content

Commit

Permalink
fix($shared-utils): fail to resolve markdown-it plugins (close #2286)(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored Apr 14, 2020
1 parent e7f33d7 commit 16df156
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 16df156

Please sign in to comment.