GitHunt
DZ

dzearing/ts-repro-cjs

Reproing the cjs bug.

ts-repro-cjs

Reproing the cjs bug. Run yarn to install, and then yarn build.

Expected

./lib/tryRequire.cjs does not have export {} at the end of the output.

Resulted

module.exports = {
    tryRequire: function (modulePath) {
        return require(modulePath);
    },
};
export {};
//# sourceMappingURL=tryRequire.cjs.map

Languages

TypeScript56.9%JavaScript43.1%

Contributors

MIT License
Created September 6, 2022
Updated September 6, 2022