mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
397 B
TypeScript
11 lines
397 B
TypeScript
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts] ////
|
|
|
|
//// [buzz.mts]
|
|
// Extensionless relative path dynamic import in an ES module
|
|
import("./foo").then(x => x); // should error, ask for extension
|
|
|
|
//// [buzz.mjs]
|
|
// Extensionless relative path dynamic import in an ES module
|
|
import("./foo").then(x => x); // should error, ask for extension
|
|
export {};
|