endent icon indicating copy to clipboard operation
endent copied to clipboard

fix: fix default export for ESM

Open dword-design opened this issue 5 months ago • 0 comments

When i run

import endent from 'endent';

console.log(endent);

It will output { default: [Function: endent] { pretty: [Function (anonymous)] } } instead of just [Function: endent] { pretty: [Function (anonymous)].

It has to do with ESM-Commonjs interop. The project either needs to compile both (see dedent) or migrate to ESM. The PR migrates to ESM.

dword-design avatar Jul 17 '25 14:07 dword-design