-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use single quotes. Add missing semicolon.
- Loading branch information
1 parent
f6f09dc
commit 6df6fab
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
(function (root, factory) { | ||
if (root === undefined && window !== undefined) root = window; | ||
if (typeof define === "function" && define.amd) { | ||
define("{{amdModuleId}}", ["module"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
(function(root, factory) { | ||
if (root === undefined && window !== undefined) { | ||
root = window; | ||
} | ||
if (typeof define === 'function' && define.amd) { | ||
define('{{amdModuleId}}', ['module'], factory); | ||
} else if (typeof exports !== 'undefined') { | ||
factory(module); | ||
} else { | ||
var mod = { | ||
const mod = { | ||
exports: {} | ||
}; | ||
factory(mod); | ||
root['{{{objectToExport}}}'] = mod.exports | ||
root['{{{objectToExport}}}'] = mod.exports; | ||
} | ||
})(this, function (module) { | ||
})(this, function(module) { | ||
{{{code}}} | ||
}); |