PopGoesTheWza / ts-gas-project-starter

Sample repository for Typescript based Google Apps Script projects
MIT License
65 stars 16 forks source link

Implement Babel + Rollup.js to support ES Modules #6

Open comxd opened 3 years ago

comxd commented 3 years ago

I like this boilerplate, the setup is light and allow multiple sub-projects <3

What about allowing ES Modules capability using Babel + Rollup.js?

The implementation is simple, I use it for some projects: https://github.com/google/clasp/blob/master/docs/esmodules.md

Related issues: https://github.com/PopGoesTheWza/ts-gas-project-starter/issues/1

PopGoesTheWza commented 10 months ago

I am no longer actively using Google Apps Scripts in my projects; hence my late reply.

When I first design this template, I was strongly opiniated against using anything that wasn't necessary. Also GAS was still using the ancient Rhino engine.

Times have changed and I'll gladly review a PR.