Skip to content

Commit

Permalink
fix(parser): correct pkg resolve which has exports field in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
3lang3 committed Jul 12, 2022
1 parent 3378cbf commit 8618597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parser/src/utils/moduleResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const getModuleResolvePath = ({
const depResolver = resolve.create.sync({
extensions,
alias: remarkOpts?.alias,
symlinks: false,
mainFiles: ['index', 'package.json'],
conditionNames: ['node', 'import', 'require'],
});
try {
const targetPath = fs.statSync(basePath).isDirectory() ? basePath : path.parse(basePath).dir;
Expand Down

0 comments on commit 8618597

Please sign in to comment.