You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the Summit, @clayrat, @marcosh and @epost found that the compiler-generated JavaScript wasn't usable with our existing code. What we want is for idris to generate a (CommonJS) module that we can include and use from other code.
Summarise current output format of idris compiler
format 1 (browser): TODO
format 2 (node): TODO
Describe in what way these formats are not what we need. (We need (CommonJS) modules).
Consider solutions
Patch idris to generate sensible js output.
Use a bundler? (Jelle's suggestion.)
Other?
The text was updated successfully, but these errors were encountered:
Both javascript and node formats generate a single javascript file that runs the main function. There is no way to call other functions. As long as this is all we need, a bundler would work indeed.
During the Summit, @clayrat, @marcosh and @epost found that the compiler-generated JavaScript wasn't usable with our existing code. What we want is for
idris
to generate a (CommonJS) module that we can include and use from other code.idris
to generate sensible js output.The text was updated successfully, but these errors were encountered: