Files
2022-06-01 16:50:21 -04:00

7 lines
235 B
TypeScript

import foo from 'foo';
// This file is ESM, so if typechecker's resolver is working correctly, will
// resolve to the foo's package.json "exports" mapping for "default", not "require"
const bar: { esm: true } = foo;
console.log(bar);