Skip to content

Commit

Permalink
chore: fix resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 27, 2021
1 parent 7deb114 commit 5c1d138
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/slidev/node/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ensurePrefix, slash } from '@antfu/utils'
import isInstalledGlobally from 'is-installed-globally'
import { sync as resolve } from 'resolve'
import resolveFrom from 'resolve-from'
import resolveGlobal from 'resolve-global'

export function toAtFS(path: string) {
Expand All @@ -18,11 +17,6 @@ export function resolveImportPath(importName: string, ensure = false) {
}
catch {}

try {
return resolveFrom(importName, __dirname)
}
catch {}

if (isInstalledGlobally) {
try {
return resolveGlobal(importName)
Expand Down

0 comments on commit 5c1d138

Please sign in to comment.