Skip to content

Add "exports" to package.json#41

Open
segevfiner wants to merge 1 commit intotamino-martinius:masterfrom
segevfiner:patch-1
Open

Add "exports" to package.json#41
segevfiner wants to merge 1 commit intotamino-martinius:masterfrom
segevfiner:patch-1

Conversation

@segevfiner
Copy link

Should fix the issue where import dedent from 'ts-dedent' doesn't work with Node.js builtin ESM which doesn't support __esModule.

Should fix the issue where `import dedent from 'ts-dedent'` doesn't work with Node.js builtin ESM which doesn't support `__esModule`.
@ndelangen
Copy link

@tamino-martinius would you be open to adopting this or a PR like this?

Over at Storybook, we use this package a lot, and the non-standard module field isn't used, so we'd love it if you could add this standard method of defining where node and bundler can find the ESM version of the code.

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.

2 participants