Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM support #333

Closed
talentlessguy opened this issue May 22, 2021 · 1 comment · May be fixed by #346
Closed

ESM support #333

talentlessguy opened this issue May 22, 2021 · 1 comment · May be fixed by #346

Comments

@talentlessguy
Copy link

Would be great to have ESM support on next-session so it supports named imports:

import { MemoryStore, session } from 'next-session'

the ESM support guide is here: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

probably because it's a more Next.js-centered project the better way would be to produce both CJS and ESM outputs.

@hoangvvo
Copy link
Owner

hoangvvo commented Dec 4, 2021

Just a note here: next-session v4 is ESM compatible. v3 is not yet though, but I will try to find sometimes to work on it.

@hoangvvo hoangvvo closed this as completed Dec 4, 2021
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 a pull request may close this issue.

2 participants