Install ruby-sprockets-es6 by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-sprockets-es6
Description:
Sprockets ES6 transformer
A Sprockets transformer that converts ES6 code into vanilla ES5 with Babel JS.
Homepage: https://github.com/TannerRogalsky/sprockets-es6
Version: 0.9.2-1
Section: universe/ruby