2020-04-24 16:35:35 +00:00
|
|
|
import module from 'module';
|
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'email.ts',
|
|
|
|
output: [
|
|
|
|
{
|
2020-05-24 20:40:01 +00:00
|
|
|
file: 'rollup/email.cjs',
|
2020-04-24 16:35:35 +00:00
|
|
|
format: 'cjs',
|
|
|
|
interop: false,
|
|
|
|
freeze: false,
|
|
|
|
sourcemap: true,
|
|
|
|
},
|
|
|
|
{
|
2020-05-24 20:40:01 +00:00
|
|
|
file: 'rollup/email.mjs',
|
2020-04-24 16:35:35 +00:00
|
|
|
format: 'es',
|
|
|
|
interop: false,
|
|
|
|
freeze: false,
|
|
|
|
sourcemap: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
external: module.builtinModules,
|
2020-04-25 20:21:57 +00:00
|
|
|
plugins: [
|
|
|
|
resolve(),
|
|
|
|
commonjs(),
|
2020-05-01 18:28:54 +00:00
|
|
|
typescript({ removeComments: false, include: ['email.ts', 'smtp/*.ts'] }),
|
2020-04-25 20:21:57 +00:00
|
|
|
],
|
2020-04-24 16:35:35 +00:00
|
|
|
};
|