From a structure perspective, a CommonJS module is a reusable piece of JavaScript that exports specific objects made available to any dependent code . Unlike AMD, there are typically no function wrappers around such modules (so we won’t see define here, for example).