mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-25 09:21:57 +03:00
Remove app dying messages from compiled lamdera output.
This commit is contained in:
parent
6ecc087a0f
commit
f2f51cd40d
@ -518,7 +518,7 @@ function _HtmlAsJson_toJson(html) {
|
||||
return forceThunks(html);
|
||||
`)
|
||||
)
|
||||
.replace(`console.log("App dying");`, ``)
|
||||
.replace(`console.log('App dying')`, "")
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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')`, "")
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user