DEV Community

[Comment from a deleted post]
 
hanna profile image
Hanna • Edited

Require isn't part of the ECMA specifications, it's part of CommonJS. As read here when you enable ES modules for your package.

 
qm3ster profile image
Mihail Malo

I think they mean that is syntactically/semantically looks like just a global function (even it if is not implemented as such in node).
In fact, that's what it was in web commonjs.