Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 606 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 606 Bytes

Example repo of using esmodules with Apps Script

Currently, Google Apps Script does not support ES modules. Hence the typical export/import pattern cannot be used and will fail.

The trick here is to make sure not to export any functions in your entry point code, e.g. index.ts, and to prevent any generation of export statement in the final bundle (see the custom rollup plugin in rollup.config.js.

Usage

Build

npm run build

Deploy

npm run deploy