This essentially means:
- The V8 Engine is fast, powerful and continuously improving, It will likely improve the performance and memory utilization of your Google Scripts.
Any new projects that you create inside the Google Apps Script editor automatically use the new V8 runtime.
script.new in your browser to quickly create a new Google Apps Script project in your browser. (Source)
ES6 Modules - The Missing Part
The new Google Apps Script environment doesn’t support ES6 modules.
The other big change is that functions become available based on the sequence of files in the script editor. Let me explain.
Say your Apps Script project has a lot of files and you have created two functions of the same name but they are located in different files. Apps Script won’t complain but when you can call this function, the one that is defined in the bottom-most file of the project will be invoked.
If you prefer the ease of working with ES6 Modules, the Apps Script Starter kit can help. You can write code locally inside Visual Studio Code, bundle the modules into a single file with Webpack and then push the bundle to the cloud automatically with Clasp.
The starter kit has also been updated to use the new V8 Runtime. Watch this YouTube video to learn how to develop with Google Scripts using the Starter Kit.
- ES6 Udacity - A detailed video course that covers all aspects of ES6, complete with quizzes and doesn’t cost a penny.
- Exploring ES6 - Deep dive into the core ES6 features with examples.
- ES6+ Introduction - An interactive screencast tutorial series that provides a walk-through of the most important ES6+ features.
- If you prefer premium courses, check out the ones by Maximilian Schwarzmüller, Wes Bos and Stephen Grider.
Google Developer Expert, Google Cloud Champion
Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.
Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory