fix(build): Fix sourcemaps, re-update metadata (#7550)

* fix(build): Revert "refactor: Remove $build$src infix from munged paths"

  This is a mostly-manual revert of commit
  06d78af6a4 to fix an issue where
  the generated sourcemaps are missing the inline copies of the
  original .ts source files.

* chore: Update metadata for 2020 Q3 release

  This is being done a second time as the revert of 06d78af causes a
  significant increase in the size of the build products.
This commit is contained in:
Christopher Allen
2023-09-28 17:35:27 +02:00
committed by Rachel Fenichel
parent c62f3350d8
commit f8bd6bed53
2 changed files with 11 additions and 10 deletions

View File

@@ -163,7 +163,8 @@ for (let i = 1; i < chunks.length; i++) {
* as munged by Closure Compiler.
*/
function modulePath(chunk) {
return 'module$' + chunk.entry.replace(/\.js$/, '').replaceAll('/', '$');
const entryPath = path.posix.join(TSC_OUTPUT_DIR_POSIX, chunk.entry);
return 'module$' + entryPath.replace(/\.js$/, '').replaceAll('/', '$');
}
const licenseRegex = `\\/\\*\\*
@@ -555,7 +556,7 @@ function buildCompiled() {
};
// Fire up compilation pipline.
return gulp.src(chunkOptions.js, {base: TSC_OUTPUT_DIR_POSIX})
return gulp.src(chunkOptions.js, {base: './'})
.pipe(stripApacheLicense())
.pipe(gulp.sourcemaps.init())
.pipe(compile(options))