mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
//// [tests/cases/conformance/salsa/commonJSReexport.ts] ////
|
|
|
|
=== main.js ===
|
|
const { hardline } = require('./second').nested;
|
|
>hardline : Symbol(hardline, Decl(main.js, 0, 7))
|
|
>require('./second').nested : Symbol(nested, Decl(second.js, 0, 18))
|
|
>require : Symbol(require)
|
|
>nested : Symbol(nested, Decl(second.js, 0, 18))
|
|
|
|
hardline
|
|
>hardline : Symbol(hardline, Decl(main.js, 0, 7))
|
|
|
|
=== first.js ===
|
|
const hardline = { type: "hard" }
|
|
>hardline : Symbol(hardline, Decl(first.js, 0, 5))
|
|
>type : Symbol(type, Decl(first.js, 0, 18))
|
|
|
|
module.exports = {
|
|
>module.exports : Symbol(exports, Decl(first.js, 0, 0))
|
|
>module : Symbol(module, Decl(first.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(first.js, 0, 0))
|
|
|
|
hardline
|
|
>hardline : Symbol(hardline, Decl(first.js, 1, 18))
|
|
}
|
|
|
|
|
|
=== second.js ===
|
|
module.exports = {
|
|
>module.exports : Symbol(exports, Decl(second.js, 0, 0))
|
|
>module : Symbol(module, Decl(second.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(second.js, 0, 0))
|
|
|
|
nested: require('./first')
|
|
>nested : Symbol(nested, Decl(second.js, 0, 18))
|
|
>require : Symbol(require)
|
|
|
|
};
|
|
|