compile modules with 'commonjs'