New
0.27.0
[0.27.0] - 2017-03-17
Added
superdefoverridableIO.inspect\1,IO.puts\1,IO.puts\2,IO.warn\1Elixir.loadfor loading generated JavaScript modules in bundled output. UnlikeElixir.start, this will only call__loadon the module and return the functions on it
const exports = Elixir.load(Elixir.MyApp);
exports.hello();
Changed
-exalias is now-e- A filename can be specified for output
- To access global JavaScript functions, modules, and properties, use the
JSmodule
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