forked from ahochsteger/gmail-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.mjs
34 lines (33 loc) · 843 Bytes
/
rollup.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { babel } from "@rollup/plugin-babel"
import commonjs from "@rollup/plugin-commonjs"
import resolve from "@rollup/plugin-node-resolve"
import typescript from "@rollup/plugin-typescript"
import { defineConfig } from "rollup"
import gas from "rollup-plugin-gas"
export default defineConfig({
context: "globalThis",
input: "./build/lib/index.js",
// [
// "core-js/stable",
// "regenerator-runtime/runtime",
// "fastestsmallesttextencoderdecoder",
// "./build/lib/index.js",
// ],
output: {
file: "./build/gas/lib/GmailProcessorLib.js",
format: "iife",
name: "GmailProcessorLib",
sourcemap: true,
},
plugins: [
resolve(),
commonjs(),
typescript(),
babel({ babelHelpers: "bundled" }),
gas({
comment: true,
moduleHeaderComment: true,
verbose: true,
}),
],
})