DEV Community

Discussion on: STOP using require() in node backend

Collapse
 
liftoffstudios profile image
Liftoff Studios

You are right about this but there is a problem that need to be addressed before using this immediately. What do you do when the module you use does not support import statements yet ? You cannot use require in that case as it throws errors.