Open marc136 opened 1 week ago
Partially done with commits ef5429315a387b9b8f0868c2117494ad7fc4c268 and https://github.com/marc136/elm-compiler-wasm/commit/79a1abf838b3ae74564abca32b6f05b1674b8ea6
Further progress will be done on https://github.com/marc136/elm-compiler-wasm/tree/main-wasm
I still want to extract TS helpers, but I don't know yet what will actually be needed and how I want to package it up. So I just added TODO comments for now.
I should restructure this repository: I want to keep it as the main repository to deploy to https://elm.run but I think I should extract the code to build an Elm compiler as WASM binary.
Right now I have one submodule of an elm compiler fork but it is used inside the directory ulm-compiler-wasm where the code to build
ulm.wasm
(essentially Elm make) andrepl.wasm
is stored.This structure makes sense for me, but for everyone else it will be confusing. And if others want to use the compiler in different projects checking out the rest of the elm.run repo will be annoying.
I'm not sure yet if I will nest the official Elm compiler (with a few additions) inside the wasm compiler repo, or if I place my code into the Elm compiler fork (but the latter will make it harder to rebase onto the next official Elm release, and maybe loading directories in cabal will be messy - don't have a computer to test that right now).