File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,10 @@ repl root details ansi (Build.ReplArtifacts home modules localizer annotations)
101
101
102
102
checkForDebugUses :: Objects -> Task ()
103
103
checkForDebugUses (Objects _ locals) =
104
- case Map. keys (Map. filter Nitpick. hasDebugUses locals) of
105
- [] -> return ()
106
- m: ms -> Task. throw (Exit. GenerateCannotOptimizeDebugValues m ms)
104
+ return ()
105
+ -- case Map.keys (Map.filter Nitpick.hasDebugUses locals) of
106
+ -- [] -> return ()
107
+ -- m:ms -> Task.throw (Exit.GenerateCannotOptimizeDebugValues m ms)
107
108
108
109
109
110
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ behaviors and limitations.
79
79
See extra/Lamdera/ReverseProxy.hs for the proxy itself
80
80
-}
81
81
modifiedHttp_toTask isProd =
82
- onlyIf (not isProd)
82
+ -- onlyIf (not isProd)
83
83
-- Identical to original except for alterIfProxyRequired addition
84
84
[text |
85
85
@@ -314,6 +314,18 @@ injections isBackend isLocalDev =
314
314
fns: fns
315
315
} : {};
316
316
}
317
+
318
+ // Restore Debug.* from dev mode to see what happens
319
+ // $$elm$$core$$Debug$$log = _Debug_log_UNUSED;
320
+ $$elm$$core$$Debug$$log = F2(function(tag, value)
321
+ {
322
+ console.log(tag + ': ', value);
323
+ return value;
324
+ });
325
+ // $$elm$$core$$Debug$$toString = _Debug_toString_UNUSED;
326
+
327
+ // debugger
328
+
317
329
|]
318
330
319
331
-- // https://github.com/elm/bytes/issues/20
Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ serveElm sentryCache path =
250
250
compileToBuilder :: FilePath -> IO BS. ByteString
251
251
compileToBuilder path =
252
252
do
253
+ _ <- Lamdera. enableLongNames
253
254
result <- compile path
254
255
255
256
pure $
@@ -311,7 +312,7 @@ compile path =
311
312
Lamdera.PostCompile. check details artifacts Exit. ReactorBadBuild
312
313
Lamdera.TypeHash. buildCheckHashes artifacts
313
314
314
- javascript <- Task. mapError Exit. ReactorBadGenerate $ Generate. dev root details artifacts
315
+ javascript <- Task. mapError Exit. ReactorBadGenerate $ Generate. prod root details artifacts
315
316
let (NE. List name _) = Build. getRootNames artifacts
316
317
return $ Html. sandwich root name javascript
317
318
You can’t perform that action at this time.
0 commit comments