mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
462 B
TypeScript
12 lines
462 B
TypeScript
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts] ////
|
|
|
|
//// [bar.cts]
|
|
// Extensionless relative path dynamic import in a cjs module
|
|
import("./foo").then(x => x); // should error, ask for extension
|
|
|
|
//// [bar.cjs]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
// Extensionless relative path dynamic import in a cjs module
|
|
import("./foo").then(x => x); // should error, ask for extension
|