@method mapFile @param {String} file @param locals @return {String}
(file, locals)
| 971 | @return {String} |
| 972 | */ |
| 973 | mapFile(file, locals) { |
| 974 | let pattern, i; |
| 975 | let fileMap = locals.fileMap || { __name__: locals.dasherizedModuleName }; |
| 976 | file = Blueprint.renamedFiles[file] || file; |
| 977 | for (i in fileMap) { |
| 978 | pattern = new RegExp(i, 'g'); |
| 979 | file = file.replace(pattern, fileMap[i]); |
| 980 | } |
| 981 | return file; |
| 982 | }, |
| 983 | |
| 984 | /** |
| 985 | Looks for a __root__ token in the files folder. Must be present for |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…