mirror of https://github.com/eleith/emailjs.git
build: ready bundle configuration
This commit is contained in:
parent
bb34667c64
commit
92e4d7f1ef
|
@ -1,10 +1,6 @@
|
|||
.vscode
|
||||
node_modules
|
||||
|
||||
*.cjs
|
||||
*.mjs
|
||||
*.map
|
||||
|
||||
*.log
|
||||
*.swp
|
||||
*.swo
|
||||
|
|
13
package.json
13
package.json
|
@ -43,18 +43,15 @@
|
|||
"node >= 10"
|
||||
],
|
||||
"files": [
|
||||
"smtp",
|
||||
"email.ts",
|
||||
"email.cjs",
|
||||
"email.cjs.map",
|
||||
"email.mjs.map",
|
||||
"email.mjs.map"
|
||||
"smtp",
|
||||
"rollup"
|
||||
],
|
||||
"main": "email.cjs",
|
||||
"main": "rollup/email.cjs",
|
||||
"types": "email.ts",
|
||||
"exports": {
|
||||
"import": "email.mjs",
|
||||
"require": "email.cjs"
|
||||
"import": "rollup/email.mjs",
|
||||
"require": "rollup/email.cjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c rollup.config.ts",
|
||||
|
|
|
@ -7,14 +7,14 @@ export default {
|
|||
input: 'email.ts',
|
||||
output: [
|
||||
{
|
||||
file: 'email.cjs',
|
||||
file: 'rollup/email.cjs',
|
||||
format: 'cjs',
|
||||
interop: false,
|
||||
freeze: false,
|
||||
sourcemap: true,
|
||||
},
|
||||
{
|
||||
file: 'email.mjs',
|
||||
file: 'rollup/email.mjs',
|
||||
format: 'es',
|
||||
interop: false,
|
||||
freeze: false,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue