CommonJS
exports는 변수나 함수의 이름을 그대로 사용해서 내보낸다. NamedExports라고 일컫는다.
module.exports와 exports는 같은 객체를 참조한다. 같은 문법이다.
const variable = require('...');
const { ... } = require('...');
보통 하나의 객체에 모아서 내보낸다.
babel이 없는 환경에서 ES모듈을 사용한다면 import를 사용할 때 꼭 확장자를 명시해야한다.
그러니까 그냥 CommonJS나 쓰자...
commonjs 버려!!! esm으로 가즈아!!