labnol / apps-script-starter

Setup a local development environment inside Visual Studio Code and build Google Workspace add-ons with Google Apps Script
https://www.youtube.com/watch?v=KxdCIbeO4Uk
MIT License
1.1k stars 176 forks source link

Why ES6 code prettily not available after deployed to AppScript Editor #31

Closed lahirue closed 4 years ago

lahirue commented 4 years ago

Since Google started supporting ES6 in their Appscript, we can directly move our ES6 code to app script. What is the purpose of converting the code into this type ? Is there any advantage ?

function rePayment() { }(function(e, a) { for(var i in a) e[i] = a[i]; }(this, /**/ (function(modules) { // webpackBootstrap /**/ // The module cache

labnol commented 4 years ago

I would not recommend using the ES6 Chrome runtime for production yet. There are too many issues around triggers, JDBC connections, script authorization, Storage and more.