The Builder uses the rollup JS API to compile and bundle your background functions.
Each file in your
defer folder should export a Defer background function as
Here are the requirements for those files:
.mtsxextensions are supported
*_test.*files are ignored
testsnested folders are skipped
5.x are supported.
The Builder detects your version of TS and uses it to compile your background functions.
TS errors will only result in warnings (as per the TS compiler default
Bundles and Sourcemaps
Here are the characteristics of the output of the Builder:
- One bundle per function
- Tree shaking is performed to reduce bundle size
- Bundles are emitted under the commonJS format
- Sourcemaps are generated