 Issue 29363565:
  Issue 4552 - Drop jshydra dependency (buildtools)  (Closed)
    
  
    Issue 29363565:
  Issue 4552 - Drop jshydra dependency (buildtools)  (Closed) 
  | Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| (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 -%} | |
| OLD | NEW |