3 ms·
Where are you seeing this? The PR that this thread is about doesn't have this quirk. Maybe your setup has some issue...?
by cush 4y ago
Where are you seeing this? The PR that this thread is about doesn't have this quirk. Maybe your setup has some issue...?
- matt_kantor 4y agoTheir complaints are unrelated to this specific PR. See https://www.typescriptlang.org/docs/handbook/esm-node.html https://www.typescriptlang.org/docs/handbook/esm-node.html for details about how import paths work in CommonJS vs ESM. In both cases the import path you write in your source code is the same import path that is used in the emitted JavaScript. What's different is that NodeJS's ESM implementation doesn't allow extensionless import paths (but its CommonJS implementation does).