fixed regression with commonjs compilation