files or get paths without the require function?
you always need to declare what to require or import. If you want to autoload something, you could write a little wrapper to make it available for some other context. Or you learn more about dependency injection
Require is a node only function, it's not part of the JavaScript standard.
Обсуждают сегодня