Skip to content

Commit 857bfb0

Browse files
committed
fix: treat createMatchPath args as opaque
1 parent 54eb91b commit 857bfb0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/index.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,8 @@ function getMappedPath(source: string, file: string) {
167167
* Like `createMatchPath` from `tsconfig-paths` package, but considers
168168
* that the module id could have a .js or .jsx extension.
169169
*/
170-
const createExtendedMatchPath: typeof createMatchPath = (
171-
absoluteBaseUrl,
172-
paths,
173-
...rest
174-
) => {
175-
const matchPath = createMatchPath(absoluteBaseUrl, paths, ...rest)
170+
const createExtendedMatchPath: typeof createMatchPath = (...createArgs) => {
171+
const matchPath = createMatchPath(...createArgs)
176172

177173
return (id, ...otherArgs) => {
178174
const match = matchPath(id, ...otherArgs)

0 commit comments

Comments
 (0)