luanglopes / ts-paths-esm-loader

Node JS loader for Typescript that supports tsconfig paths
MIT License
23 stars 5 forks source link

Logical mistake in matchPath: Condition is always false #8

Closed dobromyslov closed 1 year ago

dobromyslov commented 1 year ago

https://github.com/luanglopes/ts-paths-esm-loader/blob/34d8c331b56851a58fd639f484857e8994ad8d11/matchPath.js#L10

Should be changed to:

e.toString() !== 'TypeError: Cannot convert undefined or null to object'