I\'m trying to use ES6 in a Google Spreadsheet (in the script.google.com part). I\'m pretty new to JavaScript and maybe the error is trivial ...
As I told in the comments, GAS isn't your everyday Javascript, to overcome that error you can create a Global Var 'SomeClass', then remove the var
keyword before the function you declare inside the main function. This will get rid of this error, but another one will arise.
What's your final goal with this webpack? Why it's important within GAS?