Left file: appwork-v1_5_2/rails-turbolinks-starter/app/javascript/packs/application.js  
Right file: appwork-v1_6_0/rails-turbolinks-starter/app/javascript/packs/application.js  
1 // This file is automatically compiled by Webpack, along with any other files = 1 // This file is automatically compiled by Webpack, along with any other files
2 // present in this directory. You're encouraged to place your actual application logic in   2 // present in this directory. You're encouraged to place your actual application logic in
3 // a relevant structure within app/javascript and only use these pack files to reference   3 // a relevant structure within app/javascript and only use these pack files to reference
4 // that code so it'll be compiled.   4 // that code so it'll be compiled.
5     5  
6 require("@rails/ujs").start() <> 6 import Rails from '@rails/ujs'
      7 import Turbolinks from 'turbolinks'
7 require("@rails/activestorage").start()   8 import * as ActiveStorage from '@rails/activestorage'
8 require("channels")   9 import 'channels'
9   = 10  
10 // Include main stylesheet   11 // Include main stylesheet
11 require("../source/main.scss") <> 12 import '../source/main.scss'
12   = 13  
13 // Include main file   14 // Include main file
14 require("../source/main") <> 15 import '../source/main'
15   = 16  
16 // Initialize turbolinks <> 17 // Initialize Turbolinks and ActiveStorage
17 require("turbolinks").start()   18 Turbolinks.start()
      19 ActiveStorage.start()
18   = 20  
19 // Uncomment to copy all static images under ../images to the output folder and reference   21 // Uncomment to copy all static images under ../images to the output folder and reference
20 // them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)   22 // them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
21 // or the `imagePath` JavaScript helper below.   23 // or the `imagePath` JavaScript helper below.
22 //   24 //
23 // const images = require.context('../images', true)   25 // const images = require.context('../images', true)
24 // const imagePath = (name) => images(name, true)   26 // const imagePath = (name) => images(name, true)