We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54eb91b commit 857bfb0Copy full SHA for 857bfb0
src/index.ts
@@ -167,12 +167,8 @@ function getMappedPath(source: string, file: string) {
167
* Like `createMatchPath` from `tsconfig-paths` package, but considers
168
* that the module id could have a .js or .jsx extension.
169
*/
170
-const createExtendedMatchPath: typeof createMatchPath = (
171
- absoluteBaseUrl,
172
- paths,
173
- ...rest
174
-) => {
175
- const matchPath = createMatchPath(absoluteBaseUrl, paths, ...rest)
+const createExtendedMatchPath: typeof createMatchPath = (...createArgs) => {
+ const matchPath = createMatchPath(...createArgs)
176
177
return (id, ...otherArgs) => {
178
const match = matchPath(id, ...otherArgs)
0 commit comments