Revert "define config as CommonJS module"

This reverts commit a938551fa191ef52b7c9ae87664dec4537f7c9d9.