Make (main : Html msg) work without browser dependency
commitfdf2d7594cc24bb081f88d7e6a8b50339f07b77e
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateThu 29 Mar 2018, 14:09 (9 years ago)
parent10216a8
compiler/src/Generate/JavaScript/Expression.hs+1−1
@@ -1008,7 +1008,7 @@ generateMain :: Mode -> I.Interfaces -> ModuleName.Canonical -> Opt.Main -> JS.E
10081008generateMain mode interfaces home main =
10091009 case main of
10101010 Opt.Static ->
1011− JS.Ref (Name.fromKernel N.browser "staticPage")
1011+ JS.Ref (Name.fromKernel "VirtualDom" "init")
10121012 # JS.Ref (Name.fromGlobal home "main")
10131013 # JS.Int 0
10141014 # JS.Int 0