mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-04-24 04:25:40 +08:00
Updated UMD definition
As per this PR: https://github.com/umdjs/umd/pull/22
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
|
||||
;(function (root, factory) {
|
||||
"use strict";
|
||||
if (typeof exports === "object") {
|
||||
// CommonJS
|
||||
module.exports = factory();
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
// AMD
|
||||
define([], function() {
|
||||
return (root.ReactFireMixin = factory());
|
||||
});
|
||||
} else if (typeof exports === "object") {
|
||||
// CommonJS
|
||||
module.exports = factory();
|
||||
} else {
|
||||
// Global variables
|
||||
root.ReactFireMixin = factory();
|
||||
|
||||
Reference in New Issue
Block a user