Skip to content

Commit 4833c90

Browse files
committed
Newlines get stripped so last statement needs to not be comment, drop minify so we can see what's going on somewhat better
1 parent b0c39d4 commit 4833c90

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

extra/Lamdera/Injection.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ injections isBackend isLocalDev =
325325
// $$elm$$core$$Debug$$toString = _Debug_toString_UNUSED;
326326

327327
// debugger
328+
0;
328329

329330
|]
330331

extra/Lamdera/Live.hs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,19 @@ lamderaLiveSrc =
2525
if Ext.Common.isDebug_
2626
then do
2727
Lamdera.debug $ "🗿 Using debug mode lamderaLive"
28-
userHome <- Dir.getHomeDirectory
29-
let overrideRoot = userHome </> "dev/projects/lamdera-compiler/extra"
28+
let overrideRoot = withCompilerRoot "extra"
3029
overridePath = overrideRoot </> "live.js"
31-
overridePathBuilt = overrideRoot </> "dist/live.js"
30+
overridePathBuild = overrideRoot </> "dist/live.js"
3231

3332
exists <- doesFileExist overridePath
3433
if exists
3534
then do
36-
Lamdera.debug $ "🗿 Using " ++ overridePathBuilt ++ " for lamderaLive"
35+
Lamdera.debug $ "🗿 Using overridePathBuild " ++ overridePathBuild ++ " for lamderaLive"
3736
Ext.Common.requireBinary "npm"
3837
Ext.Common.requireBinary "esbuild"
39-
Ext.Common.bash $ "cd " <> overrideRoot <> " && npm i && esbuild " <> overridePath <> " --bundle --minify --target=chrome58,firefox57,safari11,edge16 > " <> overridePathBuilt
40-
-- Ext.Common.bash $ "cd " <> overrideRoot <> " && npm i && esbuild " <> overridePath <> " --bundle --target=chrome58,firefox57,safari11,edge16 > " <> overridePathBuilt
41-
overrideM <- readUtf8Text overridePathBuilt
38+
-- Ext.Common.bash $ "cd " <> overrideRoot <> " && npm i && esbuild " <> overridePath <> " --bundle --minify --target=chrome58,firefox57,safari11,edge16 > " <> overridePathBuild
39+
Ext.Common.bash $ "cd " <> overrideRoot <> " && npm i && esbuild " <> overridePath <> " --bundle --target=chrome58,firefox57,safari11,edge16 > " <> overridePathBuild
40+
overrideM <- readUtf8Text overridePathBuild
4241
case overrideM of
4342
Just override -> do
4443
pure (T.encodeUtf8Builder override)

0 commit comments

Comments
 (0)