🔍 Search Terms
module resolution package imports
✅ Viability Checklist
⭐ Suggestion
See nodejs/node#60864
📃 Motivating Example
This allows us to define symmetric exports and imports field in package.json:
{
"exports": {
"./*": "./src/*"
},
"imports": {
"#/*": "./src/*"
}
}
and allows us to migrate away from compilerOptions.paths.
💻 Use Cases
See above
The code requires changing is
|
if (moduleName === "#" || startsWith(moduleName, "#/")) { |
🔍 Search Terms
module resolution package imports
✅ Viability Checklist
⭐ Suggestion
See nodejs/node#60864
📃 Motivating Example
This allows us to define symmetric
exportsandimportsfield in package.json:and allows us to migrate away from compilerOptions.paths.
💻 Use Cases
See above
The code requires changing is
TypeScript/src/compiler/moduleNameResolver.ts
Line 2649 in b33d372