Skip to content

dzearing/ts-repro-cjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reproing the cjs bug.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published