-
Notifications
You must be signed in to change notification settings - Fork 219
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 for Node 18-plus? (.mts -> .mjs) #294
Comments
Put in a quick PR that appears to resolve this. Works locally! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Greets,
I'm new to this plugin and have done some digging but currently I don't see any way of using
.mts
files to generate.mjs
files when usingsls deploy
or similar. I know this is a relatively new approach from Node but it's really nice to not have to use the oldmodule.exports
syntax. I can compile my files directly by runningtsc
butsls deploy
dies with the following error:If I'm missing something obvious, my apologies. If not, are there any plans to support ESMs (specifically for Node) in the future?
Thanks!
The text was updated successfully, but these errors were encountered: