Lines Matching refs:sourcePath
254 export function writeFileSyncByString(sourcePath: string, sourceCode: string, projectConfig: Object…
255 …const filePath: string = genTemporaryPath(sourcePath, projectConfig.projectPath, process.env.cache…
260 if (/\.js$/.test(sourcePath)) {
261 sourceCode = transformModuleSpecifier(sourcePath, sourceCode, projectConfig);
268 if (/\.json$/.test(sourcePath)) {
273 export function transformModuleSpecifier(sourcePath: string, sourceCode: string, projectConfig: Obj…
285 return replaceRelativeDependency(item, moduleRequest, toUnixPath(sourcePath), projectConfig);
340 function replaceRelativeDependency(item:string, moduleRequest: string, sourcePath: string, projectC…
341 if (sourcePath && projectConfig.compileMode === ESMODULE) {
356 locateActualFilePathWithModuleRequest(path.resolve(path.dirname(sourcePath), moduleRequest));
377 …relativeSourceFilePath: string = '', rollupNewSourceMaps: Object = {}, sourcePath?: string): Promi…
379 …content, filePath, logger, projectConfig, relativeSourceFilePath, rollupNewSourceMaps, sourcePath);
392 sourcePath = toUnixPath(sourcePath);
393 let genFileInHar: GeneratedFileInHar = harFilesRecord.get(sourcePath);
396 genFileInHar = {sourcePath: sourcePath};
401 harFilesRecord.set(sourcePath, genFileInHar);
451 genFileInHar = {sourcePath: originalFilePath};
472 for (const [sourcePath, genFilesInHar] of harFilesRecord) { constant
476 relativeSourceFilePath, {}, sourcePath);
578 export function generateSourceFilesToTemporary(sourcePath: string, sourceContent: string, sourceMap…
580 …let jsFilePath: string = genTemporaryPath(sourcePath, projectConfig.projectPath, process.env.cache…
591 … let source = toUnixPath(sourcePath).replace(toUnixPath(projectConfig.projectRootPath) + '/', '');
598 sourceContent = transformModuleSpecifier(sourcePath, sourceContent, projectConfig);