atti187 / esmodules

Example repo of using esmodules with Apps Script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 93.8%Language:TypeScript 6.2%