Skip to content

Commit

Permalink
fix: remove resolve(id) because resolve is already moved to index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Jul 24, 2024
1 parent a89637b commit d739f74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/unplugin-typia/src/core/typia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ function transform(
},
);

const resolvedId = resolve(id);
const file = transformationResult.transformed.find(t => resolve(t.fileName) === resolvedId);
const file = transformationResult.transformed.find(t => resolve(t.fileName) === id);

if (file == null) {
throw new Error('No file found');
Expand Down

0 comments on commit d739f74

Please sign in to comment.