Distill shared data.

This commit is contained in:
Dillon Kearns 2022-01-26 10:45:05 -08:00
parent 2dd7394f07
commit d15a191d5a

View File

@ -445,7 +445,11 @@ main =
, toJsPort = toJsPort
, fromJsPort = fromJsPort identity
, data = dataForRoute
, sharedData = Shared.template.data
, sharedData =
Shared.template.data
|> DataSource.distillBytes "SharedData"
(encodeBytes Shared.w3_encode_Data)
(decodeBytes Shared.w3_decode_Data)
, apiRoutes = ${
phase === "browser"
? `\\_ -> []`