(filenames)
| 223 | } |
| 224 | |
| 225 | function preprocessFiles(filenames) { |
| 226 | timer.start('preprocessFiles') |
| 227 | const results = {}; |
| 228 | for (const filename of filenames) { |
| 229 | debugLog(`pre-processing JS library: ${filename}`); |
| 230 | pushCurrentFile(filename); |
| 231 | try { |
| 232 | results[filename] = processMacros(preprocess(filename), filename); |
| 233 | } catch (e) { |
| 234 | error(`error preprocessing JS library "${filename}":`); |
| 235 | throw e; |
| 236 | } finally { |
| 237 | popCurrentFile(); |
| 238 | } |
| 239 | } |
| 240 | timer.stop('preprocessFiles') |
| 241 | return results; |
| 242 | } |
| 243 | |
| 244 | export const LibraryManager = { |
| 245 | library: {}, |
no test coverage detected