mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
456 B
TypeScript
12 lines
456 B
TypeScript
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts] ////
|
|
|
|
//// [bar.cts]
|
|
// Extensionless relative path import statement in a cjs module
|
|
// Import statements are not allowed in cjs files,
|
|
// but other errors should not assume that they are allowed
|
|
import { foo } from "./foo"; // should error, should not ask for extension
|
|
|
|
//// [bar.cjs]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|