def collect_node_config_js(addons):
 js_modules = []
 for addon in addons:
  js_path = paths.resolve_addon_path(addon.config, 'node-cfg.js')
  if js_path:
   js_modules.append(js_path)
 return js_modules

def collect_node_config_js ( addons ) : js_modules = [ ] for addon in addons : js_path = paths . resolve_addon_path ( addon . config , 'node-cfg.js' ) if js_path : js_modules . append ( js_path ) return js_modules
collect webpack bundles for each of the addons node-cfg .