python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there any performance difference in ES modules vs Common JS modules in NodeJS servers?
Is there any performance advantage or disadvantage of using ES modules over CommonJS modules in a nodejs backend project? I'm asking this because I see a lot of people using CJS still even though newe...
Nethrenial.
Votes: 0
Answers: 1
How do I require a function in a node modules without using a Module Bundler
I cannot find an accurate answer to this anywhere. I understand the browser doesn't recognise commonJS syntax hence why if require() is loaded into the browser a reference error occurs like this
let i...
Kevin Greetham
Votes: 0
Answers: 2
Include a few ES style npm modules into a project with mostly commonJS modules
I have browsed a lot of questions in this space, but I haven't found a clear answer.
I recently updated many of my project's npm dependencies to their latest. The project is entirely built around com...
farhadf
Votes: 0
Answers: 1
How to import a Common JS(?) module which exports as a callable, from TypeScript
I have mixed JS/TS project
There is a JS library in the project that does this:
module.exports = () => {
// some logic conditional on env vars here
// then...
return {
someMethod: () =>...
Anentropic
Votes: 0
Answers: 1