Sage 9 Example of using /assets/scripts/routes ES6

Hi everyone, as we’re transitioning onto Sage 9 beta we’re looking for some examples of adding 3rd party JavaScript packages.

Is anyone willing to share some examples demonstrating the full process of adding a 3rd party JavaScript package to a Sage 9 theme written in ES6?

Common issues I’m seeing are:

  • translating code used in past project into ES6
  • initializing in assets/scripts/routes instead of main.js
  • best practices for building ES6 features in the Sage 9 theme structure

My goal is to produce more detailed instructions for building Sage themes and contribute it to roots/docs and the community.

Howdy! Just wanted to pass along a couple links with examples before I head off for the night: