How to use the mapSources function from gulp-sourcemaps
Find comprehensive JavaScript gulp-sourcemaps.mapSources code examples handpicked from public code repositorys.
882 883 884 885 886 887 888 889 890 891
result = result .pipe(tscFilesTracker) .pipe(sourcemaps.init()) .pipe(tsc()) .pipe( sourcemaps.mapSources(function (sourcePath, file) { let tsFileName = path.basename(file.path).replace(/js$/, 'ts'); const qualifiedSourcePath = path.dirname(file.path).replace('out/', 'src/').replace('out\\', 'src\\'); if (!fs.existsSync(path.join(qualifiedSourcePath, tsFileName))) { const tsxFileName = path.basename(file.path).replace(/js$/, 'tsx');
0
0
1
+ 19 other calls in file
gulp-sourcemaps.write is the most popular function in gulp-sourcemaps (175 examples)