1 | import typescript from "rollup-plugin-typescript";
|
2 | import buble from "rollup-plugin-buble";
|
3 |
|
4 | export default {
|
5 | entry: 'src/index.ts',
|
6 | external: ["lodash", "request", "@elium/mighty-js"],
|
7 | plugins: [
|
8 | typescript({tsconfig: false}),
|
9 | buble()
|
10 | ],
|
11 | targets: [
|
12 | {dest: 'lib/mighty-http-adapter.cjs.js', format: 'cjs', sourceMap: true},
|
13 | {dest: 'lib/mighty-http-adapter.umd.js', format: 'umd', sourceMap: true, moduleName: "mighty-http-adapter"},
|
14 | {dest: 'lib/mighty-http-adapter.es6.js', format: 'es', sourceMap: true}
|
15 | ]
|
16 | }
|