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

Support for ESM yet? #13817

Closed
olawalejuwonm opened this issue Jul 23, 2024 · 3 comments
Closed

Support for ESM yet? #13817

olawalejuwonm opened this issue Jul 23, 2024 · 3 comments

Comments

@olawalejuwonm
Copy link

          I suppose that we'll eventually migrate towards ESM modules, but there's no plan to do this atm. For now, if you must use ESM modules, I'd suggest moving forward with a bundler.

Originally posted by @kamilmysliwiec in #7021 (comment)

     This was mentioned in 2021, is there support for it yet?
@ksv90
Copy link

ksv90 commented Jul 23, 2024

The nest.js team has been resistant to change for too long. I am sure that soon we will see a new framework that implements modern development principles, including esm-decorators.

@micalevisk
Copy link
Member

There's no way to support ESM decorators right now due to missing features like parameters decorators.

The nest.js team has been resistant to change for too long

I don't think so. Moving to ESM is not an easy task an you can use ESM-only packages with nestjs apps just fine.

@kamilmysliwiec
Copy link
Member

kamilmysliwiec commented Jul 23, 2024

Funny enough, 99,9% of people asking for ESM support don't really need it (this feature really makes 0 difference for most Nest apps out there). And yes, using dynamic imports for ESM-only packages might be annoying and I get that, but believe me or not, everyone would be struggling much more if we switched to ESM by default right now.

No need to create yet another issue to track this. Once it's safe to migrate, we'll do this

@nestjs nestjs locked and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants