Export to AMD and CommonJS