Node.js's native module system was CommonJs.
It has experimental support for the standard ES6 module system and using a .mjs file extension is part of one way to trigger that support.
14에서는 공존
What is the difference between .js and .mjs files?
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
https://stackoverflow.com/questions/57492546/what-is-the-difference-between-js-and-mjs-files

Seonglae Cho