Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: templates/modules.js.tmpl

Issue 29363565: Issue 4552 - Drop jshydra dependency (buildtools) (Closed)
Patch Set: Check module exists before auto-loading it Created Nov. 30, 2016, 3:24 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « releaseAutomation.py ('k') | tox.ini » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {%- if args["module"] -%}
2 {%- for module_name, script in modules -%}
3 require.modules[{{ module_name|json }}] = function(module, exports)
4 {
5 {{ script }}
6 return module.exports;
7 };
8
9 {% endfor -%}
10 {%- set modules = dict(modules) -%}
11 {%- for module_name in args["autoload"] -%}
12 {%- if module_name in modules -%}
13 require({{ module_name|json }});
14 {% endif %}
15 {%- endfor -%}
16 {%- else -%}
17 {%- for module_name, script in modules -%}
18 {{ script }}
19 {% endfor -%}
20 {%- endif -%}
OLDNEW
« no previous file with comments | « releaseAutomation.py ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld