elixir_script v0.27.0 Release Notes

Release Date: 2017-03-18 // about 7 years ago
  • โž• Added

    • super
    • defoverridable
    • IO.inspect\1, IO.puts\1, IO.puts\2, IO.warn\1
    • Elixir.load for loading generated JavaScript modules in bundled output. Unlike Elixir.start, this will only call __load on the module and return the functions on it
    const exports = Elixir.load(Elixir.MyApp);
    exports.hello();
    

    ๐Ÿ”„ Changed

    • -ex alias is now -e
    • A filename can be specified for output
    • To access global JavaScript functions, modules, and properties, use the JS module
    JS.length # translates to 'length'
    JS.alert() # translates to 'alert()'
    JS.String.raw("hi") # translate to String.raw('hi')
    JS.console.log("hi") # translates to console.log('hi')
    

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Make sure mix compiler works in umbrella apps