diff --git a/package.json b/package.json index 8002289..59c753d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/plugin.ts b/src/plugin.ts index 48925e4..36b6ab5 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -245,8 +245,8 @@ function createPluginCallback( if ( !innerRequest || - innerRequest.startsWith(".") || - innerRequest.startsWith("..") + request?.request?.startsWith(".") || + request?.request?.startsWith("..") ) { return callback(); }