You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If a tsconfig.json path is specified, force apply it
53
+
* Same way a provided tsconfigRaw is applied regardless
54
+
* of whether it actually matches
55
+
*
56
+
* However in this case, we also warn if it doesn't match
57
+
*/
58
+
if(tsconfigPath){
59
+
consttsconfigFullPath=path.resolve(tsconfigPath);
60
+
lettsconfig=tsconfigCache.get(tsconfigFullPath);
61
+
if(!tsconfig){
62
+
tsconfig={
63
+
config: parseTsconfig(tsconfigFullPath),
64
+
path: tsconfigFullPath,
65
+
};
66
+
tsconfigCache.set(tsconfigFullPath,tsconfig);
64
67
}
65
-
}
66
68
67
-
if(fileMatcher){
68
-
transformOptions.tsconfigRaw=fileMatcher(
69
-
// Doesn't include query
70
-
this.resourcePath,
71
-
)asTransformOptions['tsconfigRaw'];
69
+
constfilesMatcher=createFilesMatcher(tsconfig);
70
+
constmatches=filesMatcher(resourcePath);
71
+
72
+
if(!matches){
73
+
this.emitWarning(
74
+
newError(`[esbuild-loader] The specified tsconfig at "${tsconfigFullPath}" was applied to the file "${resourcePath}" but does not match its "include" patterns`),
0 commit comments