Skip to content

atti187/esmodules

Repository files navigation

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

About

Example repo of using esmodules with Apps Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published