mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
39 lines
870 B
Plaintext
39 lines
870 B
Plaintext
//// [tests/cases/conformance/node/allowJs/nodeModulesAllowJsExportAssignment.ts] ////
|
|
|
|
=== subfolder/index.js ===
|
|
// cjs format file
|
|
const a = {};
|
|
>a : Symbol(a, Decl(index.js, 1, 5))
|
|
|
|
export = a;
|
|
>a : Symbol(a, Decl(index.js, 1, 5))
|
|
|
|
=== subfolder/file.js ===
|
|
// cjs format file
|
|
const a = {};
|
|
>a : Symbol(a, Decl(file.js, 1, 5))
|
|
|
|
module.exports = a;
|
|
>module.exports : Symbol(exports, Decl(file.js, 0, 0))
|
|
>module : Symbol(module, Decl(file.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(file.js, 0, 0))
|
|
>a : Symbol(a, Decl(file.js, 1, 5))
|
|
|
|
=== index.js ===
|
|
// esm format file
|
|
const a = {};
|
|
>a : Symbol(a, Decl(index.js, 1, 5))
|
|
|
|
export = a;
|
|
>a : Symbol(a, Decl(index.js, 1, 5))
|
|
|
|
=== file.js ===
|
|
// esm format file
|
|
import "fs";
|
|
const a = {};
|
|
>a : Symbol(a, Decl(file.js, 2, 5))
|
|
|
|
module.exports = a;
|
|
>a : Symbol(a, Decl(file.js, 2, 5))
|
|
|