Files
tsgo/testdata/tests/cases/compiler/nodeModulesPackageImportsRootWildcardNode16.ts
dcebe5348d Port TypeScript PR #62844: Gate #/ subpath imports on NodeNext and Bundler (#2330)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
2025-12-11 18:52:06 +00:00

19 lines
342 B
TypeScript

// @module: node16
// @declaration: true
// @traceResolution: true
// @filename: package.json
{
"name": "package",
"private": true,
"type": "module",
"imports": {
"#/*": "./src/*"
}
}
// @filename: src/foo.ts
export const foo = "foo";
// @filename: index.ts
// esm format file
import { foo } from "#/foo.js";
foo;