-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #362 causing the Vlocode to break when build in CI/CD (issu…
…e caused by tsconfig-paths-webpack-plugin bug)
- Loading branch information
Showing
8 changed files
with
39 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js b/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js | ||
index 51c5502..1138970 100644 | ||
--- a/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js | ||
+++ b/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js | ||
@@ -70,8 +70,9 @@ function createPluginCallback(matchPath, resolver, absoluteBaseUrl, hook, extens | ||
return (request, resolveContext, callback) => { | ||
const innerRequest = getInnerRequest(resolver, request); | ||
if (!innerRequest || | ||
- innerRequest.startsWith(".") || | ||
- innerRequest.startsWith("..")) { | ||
+ !request || !request.request || | ||
+ request.request.startsWith(".") || | ||
+ request.request.startsWith("..")) { | ||
return callback(); | ||
} | ||
matchPath(innerRequest, readJsonAsync, fileExistAsync, extensions, (err, foundMatch) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters