Open AlexErofeev opened 7 years ago
In https://github.com/elm-lang/elm-make/issues/50 was added code to move Elm object from global scope if on the page any JS module library (requirejs, for example) is present. Nonetheless elm-reactor still assumes that Elm object is present in global scope. My propose is to add additional checks to function toJavaScript in file https://github.com/elm-lang/elm-reactor/blob/master/src/backend/Compile.hs
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
In https://github.com/elm-lang/elm-make/issues/50 was added code to move Elm object from global scope if on the page any JS module library (requirejs, for example) is present. Nonetheless elm-reactor still assumes that Elm object is present in global scope. My propose is to add additional checks to function toJavaScript in file https://github.com/elm-lang/elm-reactor/blob/master/src/backend/Compile.hs