What REALLY happens when we require() a module in NodeJS?
## There are 5 steps in this process:
- **Resolving & Loading**.
- **Wrapping**.
- **Execution**.
- **Returning Exports**.
- **Caching**.
### **Step 1: Resolving & Loading**:
> Before explaining this step, You should know that there are 3 types of m...
th3h4dyy.hashnode.dev2 min read
Dean Tarisai
Software developer
Awesome post! But what causes an error to rise when I try to use an .mjs file inside of a js file ? Are they limits to interoperability of module formats ?