mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
// @checkJs: true
|
|
// @outdir: out/
|
|
// @declaration: true
|
|
// @Filename: commonJSAliasedExport.js
|
|
const donkey = (ast) => ast;
|
|
|
|
function funky(declaration) {
|
|
return false;
|
|
}
|
|
module.exports = donkey;
|
|
module.exports.funky = funky;
|
|
|
|
// @Filename: bug43713.js
|
|
const { funky } = require('./commonJSAliasedExport');
|
|
/** @type {boolean} */
|
|
var diddy
|
|
var diddy = funky(1)
|
|
|