Skip to content

Commit

Permalink
Fix incorrect resolution with relative imports on project dependencies (
Browse files Browse the repository at this point in the history
#85)

* Fix incorrect resolution with relative imports on project dependencies

* Fix #83

Co-authored-by: Damian Kaczmarek <[email protected]>
  • Loading branch information
voliva and Rush authored Nov 13, 2021
1 parent 988a5c7 commit 2d838a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsconfig-paths-webpack-plugin",
"version": "3.5.1",
"version": "3.5.2",
"description": "Load modules according to tsconfig paths in webpack.",
"main": "lib/index.js",
"types": "lib/index",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ function createPluginCallback(

if (
!innerRequest ||
innerRequest.startsWith(".") ||
innerRequest.startsWith("..")
request?.request?.startsWith(".") ||
request?.request?.startsWith("..")
) {
return callback();
}
Expand Down

0 comments on commit 2d838a0

Please sign in to comment.