Skip to content

Commit

Permalink
Update vite
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirlogachev committed May 22, 2024
1 parent 636c8bd commit 31a731a
Show file tree
Hide file tree
Showing 6 changed files with 943 additions and 268 deletions.
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<body>
<noscript> You need to enable JavaScript to run this app. </noscript>
<div id="app"><div></div></div>
<script type="module" src="/main.js"></script>
<script type="module" src="/init.ts"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion frontend/main.js → frontend/init.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-ignore
import { Elm } from "./src/Main.elm";

// @ts-ignore
if (process.env.NODE_ENV === "development") {
const ElmDebugTransform = await import("elm-debug-transformer");

ElmDebugTransform.register({
simple_mode: true,
});
Expand Down
Loading

0 comments on commit 31a731a

Please sign in to comment.