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

adds .mts to .mjs support, rather than throwing an error #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cwbuecheler
Copy link

@cwbuecheler cwbuecheler commented Jun 15, 2023

Closes #294
Node.js 18.x requires files to be named .mjs instead of .js to use modern ES imports instead of module.exports. Typescript can be set up to compile it without issue using the .mts extension, but the plugin was failing before getting to the compile. This is just a quick little PR that resolves the issue. All tests / lints / etc pass, and I've tested locally and it works fine with sls deploy.

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.

ESM Support for Node 18-plus? (.mts -> .mjs)
2 participants