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

Skip `global` in Terser plugin #35

Closed titanjer closed 4 years ago

titanjer commented 4 years ago

Terser plugin mangles variable global under production mode. This PR fixes this issue and add a spreadsheet menu example to show global will be alive under production mode.

spreadsheet example

labnol commented 4 years ago

Sorry, we are unable to reproduce the issue. The variable 'global' was not mangled when the environment was set to production mode. Could you share your webpack config file that caused the issue?

labnol commented 4 years ago

Closing request.