mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Merge pull request #27980 from EECOLOR/leading-slash-imports
match leading slash imports with path mappings - fixes #13730
This commit is contained in:
40 files changed
+1276
-24
No files matched your search
@@ -757,6 +757,9 @@ import b = require("./moduleB");
|
||||
],
|
||||
"somefolder/*": [
|
||||
"someanotherfolder/*"
|
||||
],
|
||||
"/rooted/*": [
|
||||
"generated/*"
|
||||
]
|
||||
}
|
||||
};
|
||||
@@ -773,6 +776,7 @@ import b = require("./moduleB");
|
||||
"/root/folder1/file2/index.d.ts",
|
||||
// then first attempt on 'generated/*' was successful
|
||||
]);
|
||||
check("/rooted/folder1/file2", file2, []);
|
||||
check("folder2/file3", file3, [
|
||||
// first try '*'
|
||||
"/root/folder2/file3.ts",
|
||||
@@ -900,6 +904,9 @@ import b = require("./moduleB");
|
||||
],
|
||||
"somefolder/*": [
|
||||
"someanotherfolder/*"
|
||||
],
|
||||
"/rooted/*": [
|
||||
"generated/*"
|
||||
]
|
||||
}
|
||||
};
|
||||
@@ -911,6 +918,7 @@ import b = require("./moduleB");
|
||||
"/root/folder1/file2.d.ts",
|
||||
// success when using 'generated/*'
|
||||
]);
|
||||
check("/rooted/folder1/file2", file2, []);
|
||||
check("folder1/file3", file3, [
|
||||
// first try '*'
|
||||
"/root/folder1/file3.ts",
|
||||
|
||||
Reference in new issue
Block a user