Support for CommonJS environments other than nodejs