swc/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.ts

6 lines
203 B
TypeScript
Raw Normal View History

// @moduleResolution: node12
// @module: node12
// @filename: /src/buzz.mts
// Extensionless relative path dynamic import in an ES module
import("./foo").then(x => x); // should error, ask for extension