-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show compiled Erlang #2
Comments
It's not possible to execute Erlang in a browser so this isn't needed! |
Agreed we should execute the JS target, but it would be nice to show the compiled Erlang output, no? |
Yes but you don't need to add compiled Erlang stdlib to the bundle to do that. The only thing you need to do is ask the compiler for Erlang rather than JavaScript and it'll just work. |
I tried doing that but it complained about missing libraries |
Here's the specific error:
|
That's due to your code removing the Erlang externals here: https://github.com/gleam-lang/playground/pull/1/files#diff-0065b9cdf8ba089285f3fbb25a377340d06c0259d93e36ef05c7c908ea950b71R195-R197 |
Welp. Sounds about right. That'll teach me for copy-pasting stuff and then not reading it in detail 😅 Thanks! I'll add this to #1. |
The code for this is mostly there on the JS side (in
index.js
andworker.js
). We just need to add the compiled Erlang stdlib to the bundle like we do with the JS stdlib in order to get compilation working.The text was updated successfully, but these errors were encountered: