2022-05-07 03:48:00 +00:00
|
|
|
import module from 'module';
|
2020-04-24 16:35:35 +00:00
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'email.ts',
|
2022-04-14 17:17:24 +00:00
|
|
|
output: {
|
|
|
|
file: 'email.js',
|
|
|
|
format: 'es',
|
|
|
|
sourcemap: true,
|
2022-05-06 09:32:18 +00:00
|
|
|
footer: `
|
|
|
|
/**
|
|
|
|
* @typedef {{ [index: string]: any }} AddressObject
|
|
|
|
* @typedef {{ [index: string]: any }} AddressToken
|
|
|
|
* @typedef {{ [index: string]: any }} ConnectOptions
|
|
|
|
* @typedef {{ [index: string]: any }} MessageAttachment
|
|
|
|
* @typedef {{ [index: string]: any }} MessageHeaders
|
|
|
|
* @typedef {{ [index: string]: any }} MessageStack
|
|
|
|
* @typedef {{ [index: string]: any }} SMTPConnectionOptions
|
|
|
|
* @typedef {Function} SMTPCommandCallback
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @template {Message | MessageHeaders} T
|
|
|
|
* @typedef {<T>(err: Error, msg: T) => void} MessageCallback
|
|
|
|
*/
|
|
|
|
`
|
|
|
|
.trim()
|
|
|
|
.replace(/\t/g, ''),
|
2022-04-14 17:17:24 +00:00
|
|
|
},
|
2022-05-07 03:48:00 +00:00
|
|
|
external: module.builtinModules,
|
2020-04-25 20:21:57 +00:00
|
|
|
plugins: [
|
2022-03-17 20:57:11 +00:00
|
|
|
typescript({ removeComments: false, include: ['email.ts', 'smtp/*'] }),
|
2020-04-25 20:21:57 +00:00
|
|
|
],
|
2020-04-24 16:35:35 +00:00
|
|
|
};
|