mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +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))
|
||||
|
||||
@@ -35,8 +35,8 @@ readonly RELEASE_DIR='dist'
|
||||
# Q4 2022 9.1.1 903357
|
||||
# Q1 2023 9.2.1 909181
|
||||
# Q2 2023 9.3.3 887618
|
||||
# Q3 2023 10.1.3 818138
|
||||
readonly BLOCKLY_SIZE_EXPECTED=818138
|
||||
# Q3 2023 10.1.3 898859
|
||||
readonly BLOCKLY_SIZE_EXPECTED=898859
|
||||
|
||||
# Size of blocks_compressed.js
|
||||
# Q2 2019 2.20190722.0 75618
|
||||
@@ -57,8 +57,8 @@ readonly BLOCKLY_SIZE_EXPECTED=818138
|
||||
# Q4 2022 9.1.1 102190
|
||||
# Q1 2023 9.2.1 101114
|
||||
# Q2 2023 9.3.3 91848
|
||||
# Q3 2023 10.1.3 84772
|
||||
readonly BLOCKS_SIZE_EXPECTED=84772
|
||||
# Q3 2023 10.1.3 90150
|
||||
readonly BLOCKS_SIZE_EXPECTED=90150
|
||||
|
||||
# Size of blockly_compressed.js.gz
|
||||
# Q2 2019 2.20190722.0 180925
|
||||
@@ -80,8 +80,8 @@ readonly BLOCKS_SIZE_EXPECTED=84772
|
||||
# Q4 2022 9.1.1 179306
|
||||
# Q1 2023 9.2.1 179814
|
||||
# Q2 2023 9.3.3 175206
|
||||
# Q3 2023 10.1.3 177241
|
||||
readonly BLOCKLY_GZ_SIZE_EXPECTED=177241
|
||||
# Q3 2023 10.1.3 180553
|
||||
readonly BLOCKLY_GZ_SIZE_EXPECTED=180553
|
||||
|
||||
# Size of blocks_compressed.js.gz
|
||||
# Q2 2019 2.20190722.0 14552
|
||||
@@ -102,8 +102,8 @@ readonly BLOCKLY_GZ_SIZE_EXPECTED=177241
|
||||
# Q4 2022 9.1.1 17182
|
||||
# Q1 2023 9.2.1 17262
|
||||
# Q2 2023 9.3.3 16736
|
||||
# Q3 2023 10.1.3 16299
|
||||
readonly BLOCKS_GZ_SIZE_EXPECTED=16299
|
||||
# Q3 2023 10.1.3 16508
|
||||
readonly BLOCKS_GZ_SIZE_EXPECTED=16508
|
||||
|
||||
# ANSI colors
|
||||
readonly BOLD_GREEN='\033[1;32m'
|
||||
|
||||
Reference in New Issue
Block a user