Skip to content

Conversation

@dword-design
Copy link

@dword-design dword-design commented Jul 17, 2025

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 dword-design changed the title fix: fix default export fix: fix default export for ESM Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant