- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-executor.js
r59329aa re29cc2e 63 63 for (const action of actions) { 64 64 const execution = executor(action); 65 executions.set(execution, execution.then((result) => { 66 executions.delete(execution); 67 return result; 68 })); 65 executions.set(execution, execution.then((result) => [execution, result])); 69 66 } 70 67 while (executions.size > 0) { 71 yield Promise.race(executions.values()); 68 const [execution, result] = await Promise.race(executions.values()); 69 executions.delete(execution); 70 yield result; 72 71 } 73 72 } -
trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.d.ts
r59329aa re29cc2e 25 25 replacements?: [string, string][]; 26 26 supportedBrowsers?: string[] | Record<string, string>; 27 memoryMode?: boolean; 27 28 } 28 29 export interface ProcessBundleResult { … … 36 37 size: number; 37 38 integrity?: string; 39 content?: string; 38 40 map?: { 39 41 filename: string; 40 42 size: number; 43 content?: string; 41 44 }; 42 45 } -
trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js
r59329aa re29cc2e 135 135 exports.process = process; 136 136 async function processBundle(options) { 137 const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, } = options;137 const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, memoryMode, } = options; 138 138 const filename = path.basename(filepath); 139 139 let resultCode = code; … … 169 169 } 170 170 await cachePut(mapContent, cacheKeys[isOriginal ? 1 /* OriginalMap */ : 3 /* DownlevelMap */]); 171 fs.writeFileSync(filepath + '.map', mapContent); 172 } 173 const fileResult = createFileEntry(filepath, resultCode, mapContent, integrityAlgorithm); 171 if (!memoryMode) { 172 fs.writeFileSync(filepath + '.map', mapContent); 173 } 174 } 175 const fileResult = createFileEntry(filepath, resultCode, mapContent, memoryMode, integrityAlgorithm); 174 176 await cachePut(resultCode, cacheKeys[isOriginal ? 0 /* OriginalCode */ : 2 /* DownlevelCode */], fileResult.integrity); 175 fs.writeFileSync(filepath, resultCode); 177 if (!memoryMode) { 178 fs.writeFileSync(filepath, resultCode); 179 } 176 180 return fileResult; 177 181 } … … 201 205 return { code: minifyOutput.code, map: minifyOutput.map }; 202 206 } 203 function createFileEntry(filename, code, map, integrityAlgorithm) {207 function createFileEntry(filename, code, map, memoryMode, integrityAlgorithm) { 204 208 return { 205 209 filename: filename, 206 210 size: Buffer.byteLength(code), 207 211 integrity: integrityAlgorithm && generateIntegrityValue(integrityAlgorithm, code), 212 content: memoryMode ? code : undefined, 208 213 map: !map 209 214 ? undefined … … 211 216 filename: filename + '.map', 212 217 size: Buffer.byteLength(map), 218 content: memoryMode ? map : undefined, 213 219 }, 214 220 };
Note:
See TracChangeset
for help on using the changeset viewer.