![javascript - How to use require.js with complicated source tree, or import something else from CommonJS'es main.js? - Stack Overflow javascript - How to use require.js with complicated source tree, or import something else from CommonJS'es main.js? - Stack Overflow](https://i.stack.imgur.com/luLu8.png)
javascript - How to use require.js with complicated source tree, or import something else from CommonJS'es main.js? - Stack Overflow
![CommonJS vs ECMAScript Modules (ESM). Choosing the Right Module System for Your JavaScript Project | by Eduard Koshkelyan | Stackademic CommonJS vs ECMAScript Modules (ESM). Choosing the Right Module System for Your JavaScript Project | by Eduard Koshkelyan | Stackademic](https://miro.medium.com/v2/resize:fit:785/1*MFmmAjm6X0PtHrphkObGoQ.png)
CommonJS vs ECMAScript Modules (ESM). Choosing the Right Module System for Your JavaScript Project | by Eduard Koshkelyan | Stackademic
![Jarred Sumner on X: "In Bun.js, you can use import and require() in the same .js file. Works for .mjs, .ts, .tsx too https://t.co/09uMVRCuZn" / X Jarred Sumner on X: "In Bun.js, you can use import and require() in the same .js file. Works for .mjs, .ts, .tsx too https://t.co/09uMVRCuZn" / X](https://pbs.twimg.com/media/FHkYSnFUcAA78Qg.jpg:large)
Jarred Sumner on X: "In Bun.js, you can use import and require() in the same .js file. Works for .mjs, .ts, .tsx too https://t.co/09uMVRCuZn" / X
![Modifying the 'import' Method in JavaScript: Unveiling the Power of 'require()'🤯 | by Mohammad Amin Esmaili | Medium Modifying the 'import' Method in JavaScript: Unveiling the Power of 'require()'🤯 | by Mohammad Amin Esmaili | Medium](https://miro.medium.com/v2/resize:fit:804/1*4ILnGpAPNn3s6R14AOZYyA.png)