Fix JS proto definitions not getting tree-shaken

This commit is contained in:
Damien Elmes 2023-11-27 12:45:22 +10:00
parent a5de0fb40a
commit 0b8443032e

View file

@ -39,7 +39,7 @@ function adjustFiles() {
// strip out typeName info, which appears to only be required for // strip out typeName info, which appears to only be required for
// certain JSON functionality (though this only saves a few hundred // certain JSON functionality (though this only saves a few hundred
// bytes) // bytes)
newContents = contents.replace(typeRe, "$1(\"\","); newContents = newContents.replace(typeRe, "$1(\"\",");
if (contents != newContents) { if (contents != newContents) {
fs.writeFileSync(file, newContents, "utf8"); fs.writeFileSync(file, newContents, "utf8");