esm-to-cjs icon indicating copy to clipboard operation
esm-to-cjs copied to clipboard

Transform ESM to Common JS for present NodeJS, without any junk wrappers or useless renaming

Results 4 esm-to-cjs issues
Sort by recently updated
recently updated
newest added

Hello, I encountered some problems while experiencing the conversion function case 1 Import only is not supported ```js // input import "lib"; // what i wanted require("lib"); // actual:ParseError ```...

Would be cool to have typings for this lib

runtime error when processing `inferno/dist/index.esm.js` https://www.npmjs.com/package/inferno?activeTab=code

```javascript import esmToCJS from 'esm-to-cjs' console.log(esmToCJS.runTransform(` const prop1 = 'val1' const prop2 = 'val2' export default { prop1 prop2 } `, {})) // const prop1 = 'val1' // const prop2...