siblingpastry, 1 month ago @joelanman Both require and import can be used as statements or dynamic functions. The statement syntax requires module import, but the function supports anything. (Still talking ES6, don't know about Node specifically)
@joelanman Both require and import can be used as statements or dynamic functions. The statement syntax requires module import, but the function supports anything.
require
import
(Still talking ES6, don't know about Node specifically)