-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi there,
running into the issue that when I add constants to my module, the esm autoexports filter creates invalid syntax.
This works fine
module Hello
def hi()
puts "hello"
end
end
But this doesn't:
module Hello
WORD = "world"
def hi()
puts WORD
end
end
The javascript it generates is missing a const
between export
and Hello
export Hello = (() => {
const WORD = "world";
function hi() {
return console.log(WORD)
};
return {BLA, hi}
})()
Metadata
Metadata
Assignees
Labels
No labels