|
|
@ -29,7 +29,8 @@ export default [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
input: "src/index.ts", |
|
|
|
input: "src/index.ts", |
|
|
|
plugins: [ |
|
|
|
plugins: [ |
|
|
|
typescript(), |
|
|
|
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }), |
|
|
|
|
|
|
|
|
|
|
|
commonjs(), |
|
|
|
commonjs(), |
|
|
|
babel(babelOptions), |
|
|
|
babel(babelOptions), |
|
|
|
terser(terserOptions), |
|
|
|
terser(terserOptions), |
|
|
@ -53,7 +54,11 @@ export default [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
input: "src/index.ts", |
|
|
|
input: "src/index.ts", |
|
|
|
plugins: [typescript(), commonjs()], |
|
|
|
plugins: [ |
|
|
|
|
|
|
|
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commonjs(), |
|
|
|
|
|
|
|
], |
|
|
|
output: { |
|
|
|
output: { |
|
|
|
file: "dist/index.dev.js", |
|
|
|
file: "dist/index.dev.js", |
|
|
|
format: "iife", |
|
|
|
format: "iife", |
|
|
@ -62,7 +67,9 @@ export default [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
input: "src/index.ts", |
|
|
|
input: "src/index.ts", |
|
|
|
plugins: [typescript()], |
|
|
|
plugins: [ |
|
|
|
|
|
|
|
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }), |
|
|
|
|
|
|
|
], |
|
|
|
output: { |
|
|
|
output: { |
|
|
|
file: "dist/index.esm.js", |
|
|
|
file: "dist/index.esm.js", |
|
|
|
format: "esm", |
|
|
|
format: "esm", |
|
|
|