Skip to content

Commit

Permalink
fix: cjs in esm
Browse files Browse the repository at this point in the history
  • Loading branch information
rturnq committed Nov 7, 2023
1 parent f31859e commit a4a8010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resolve.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { exports } from "resolve.exports";
import { type Opts as ResolveOpts, sync as resolveSync } from "resolve";
import * as Resolve from "resolve";
import type { Opts as ResolveOpts } from "resolve";
import path from "path";
import fs from "fs";

Expand Down Expand Up @@ -34,7 +35,7 @@ export function resolve(
extensions: string[],
conditions: string[]
) {
return resolveSync(id, {
return Resolve.sync(id, {
basedir: path.dirname(from),
filename: from,
pathFilter,
Expand Down

0 comments on commit a4a8010

Please sign in to comment.