Remove app dying messages from compiled lamdera output.

This commit is contained in:
Dillon Kearns 2022-03-11 11:50:02 -08:00
parent 6ecc087a0f
commit f2f51cd40d
2 changed files with 2 additions and 12 deletions

View File

@ -518,7 +518,7 @@ function _HtmlAsJson_toJson(html) {
return forceThunks(html);
`)
)
.replace(`console.log("App dying");`, ``)
.replace(`console.log('App dying')`, "")
);
}

View File

@ -21,17 +21,7 @@ async function spawnElmMake(options, elmEntrypointPath, outputPath, cwd) {
/return \$elm\$json\$Json\$Encode\$string\(.REPLACE_ME_WITH_JSON_STRINGIFY.\)/g,
"return " + (debug ? "_Json_wrap(x)" : "x")
)
.replace(
"return ports ? { ports: ports } : {};",
`const die = function() {
managers = null
model = null
stepper = null
ports = null
}
return ports ? { ports: ports, die: die } : { die: die };`
)
.replace(`console.log('App dying')`, "")
);
}