mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
497 B
TypeScript
21 lines
497 B
TypeScript
//// [tests/cases/conformance/externalModules/nameDelimitedBySlashes.ts] ////
|
|
|
|
//// [foo_0.ts]
|
|
export var foo = 42;
|
|
|
|
//// [foo_1.ts]
|
|
import foo = require('./test/foo_0');
|
|
var x = foo.foo + 42;
|
|
|
|
|
|
//// [foo_0.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.foo = void 0;
|
|
exports.foo = 42;
|
|
//// [foo_1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const foo = require("./test/foo_0");
|
|
var x = foo.foo + 42;
|