[DRE-maint] Bug#1013218: Fwd: Re: [Pkg-javascript-devel] Bug#1013218: rails: ftbfs SyntaxError: Unexpected token 'export'
Pirate Praveen
praveen at onenetbeyond.org
Sun Jun 19 11:29:29 BST 2022
Control: forwarded -1
https://github.com/rails/ruby-coffee-script/issues/22
Control: reassign -1 ruby-sprockets
Control: affects -1 rails,ruby-cofee-source
On ഞാ, ജൂൺ 19, 2022 at 15:50, Pirate Praveen
<praveen at onenetbeyond.org> wrote:
>
>
> On ഞാ, ജൂൺ 19, 2022 at 15:46, Pirate Praveen
> <praveen at onenetbeyond.org> wrote:
>> from http://coffeescript.org/#whats-new-in-coffeescript-2
>>
>> What’s New In CoffeeScript 2?
>>
>> The biggest change in CoffeeScript 2 is that now the CoffeeScript
>> compiler produces modern JavaScript syntax (ES6, or ES2015 and
>> later).
>>
>> So this explains the breakage. I don't think we can stay with
>> cofeescript 1.x so we have to find a way to make cofeescript 2
>> produce ES5 or make execjs handle ES6 since underlying nodejs
>> (16.x) can handle it natively.
>
> http://coffeescript.org/#transpilation gives options for cofee
> command line, we will have to adapt ruby-cofee-script-source to pass
> these options.
coffee-script seems stuck upstream
https://github.com/rails/ruby-coffee-script/issues/22
another options seems to be sprockets 4 which supports ES6.
https://github.com/rails/sprockets#upgrading-to-sprockets-4x
More information about the Pkg-ruby-extras-maintainers
mailing list