mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
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 commit06d78af6a4to 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 of06d78afcauses a significant increase in the size of the build products.
This commit is contained in:
committed by
Rachel Fenichel
parent
c62f3350d8
commit
f8bd6bed53
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user