GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Allow export map entries to remap back to input files for a program by weswigham · Pull Request #47925 · microsoft/TypeScript Conversation
Member
Fixes #46762 As the code may show, this is more of a mire than it appears at first blush. Because our output directory structure depends on the set of files we load (unless AFAIK, this circular dependence issue was technically observable prior to export maps - imports like
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Wesley Wigham (weswigham)
requested review from
Andrew Branch (andrewbranch) and
Ron Buckton (rbuckton)
Wesley Wigham (weswigham)
force-pushed
the
self-name-redirects
branch
from
8558033 to
f6dc158
Compare
Andrew Branch (andrewbranch)
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Conclusion from design meeting #48095 was to enforce
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I’m reading this right, I find it troubling that if your project is sufficiently close to the disk root, the requirement of specifying
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So... Sort-of. If the common path between the requesting file and the target file is the system root, then, yes. Every guess will be the system root, so there'll only be one unique guess. (Because it's the only possible root directory) I don't think "mount location independence" is an aspect of our module resolver that it actually has -
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
|
Daniel Rosenwasser (@DanielRosenwasser) what/where/when do we want this merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
(There are conflicts now because some of these changes affect deleted baselines.) It seems like this is part of the node16/nodenext story, so we should get it merged by today IMO. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Build (including in `prepare` script) will fail if the repo is cloned into a subtree of a `node_modules` directory other than the one immediately containing dynohot, e.g. `/a/node_modules/b/node_modules/dynohot` Due to a TS bug in https://github.com/microsoft/TypeScript/blob/48f2ada110a697668db7d2d1c11a382b0192d3f9/src/compiler/moduleNameResolver.ts#L2864-L2971 see microsoft/TypeScript#50762 see microsoft/TypeScript#47925
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
--module nodenext self-name references don't work with an outDir from clean build
There was an error while loading. Please reload this page.