何が起きていたかBabel の compact は 6.24.1 時点では 500KB 以上で適用されることとなっているが、これが適用されると eslint 的には OK だが Google Apps Script 的には NG なコードができあがる。ことがある。 Babel の compact は UglifyJS のようにアグレッシブなものではなく、本当に単純に white space を取り除いただけっぽく見える。読もうと思えば人間でも普通に読める。 ところがこれが適用されたコードで みたいな謎のエラーが出るようになってしまった。該当箇所は Babel が compact したところのようだが、何が悪いのかは Script Editor は教えてくれない、何が function じゃないかも分からない。しかもどのようにコードをいじってもまったく同じエラーが出続ける。 そう、GAS プ