mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix JS proto definitions not getting tree-shaken
This commit is contained in:
parent
a5de0fb40a
commit
0b8443032e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ function adjustFiles() {
|
|||
// strip out typeName info, which appears to only be required for
|
||||
// certain JSON functionality (though this only saves a few hundred
|
||||
// bytes)
|
||||
newContents = contents.replace(typeRe, "$1(\"\",");
|
||||
newContents = newContents.replace(typeRe, "$1(\"\",");
|
||||
|
||||
if (contents != newContents) {
|
||||
fs.writeFileSync(file, newContents, "utf8");
|
||||
|
|
Loading…
Reference in a new issue