Open fantian007 opened 9 months ago
Describe the bug
Version: 21.0.1
sourceText:
declare module '@x/y' {};
judge:
const modules = sourceFile.getModules(); modules.forEach(m => { if (m.getName() === "'@x/y'") { console.log('enter'); } });
so, Why ? "'@x/y'" instead of '@x/y'?
And:
const t = sourceFile.getModule('@x/y'); // => undefined ? const t = sourceFile.getModule("'@x/y'"); // => it works...
Expected behavior '@x/y'
I'm confused...
These two module names are distinct:
declare module "example" {} declare module example {}
That said, perhaps it should be normalizing single quotes to double quotes.
Describe the bug
Version: 21.0.1
sourceText:
judge:
so, Why ? "'@x/y'" instead of '@x/y'?
And:
Expected behavior '@x/y'