1 | (function (root, factory) {
|
2 | if (typeof define === 'function' && define.amd) {
|
3 | // AMD. Register as an anonymous module.
|
4 | define({{#if amdModuleId}}'{{amdModuleId}}', {{/if}}[{{{amdDependencies}}}], function ({{dependencies}}) {
|
5 | return (root.returnExportsGlobal = factory({{dependencies}}));
|
6 | });
|
7 | } else if (typeof exports === 'object') {
|
8 | // Node. Does not work with strict CommonJS, but
|
9 | // only CommonJS-like enviroments that support module.exports,
|
10 | // like Node.
|
11 | module.exports = factory({{{cjsDependencies}}});
|
12 | } else {
|
13 | {{#if globalAlias}}root['{{{globalAlias}}}'] = {{else}}{{#if objectToExport}}root['{{{objectToExport}}}'] = {{/if}}{{/if}}factory({{{globalDependencies}}});
|
14 | }
|
15 | }(this, function ({{dependencies}}) {
|
16 |
|
17 | {{{code}}}
|
18 | {{#if objectToExport}}
|
19 | {{indent}}return {{{objectToExport}}};
|
20 | {{/if}}
|
21 |
|
22 | }));
|
23 |
|
\ | No newline at end of file |