1 | import resolve from "rollup-plugin-node-resolve";
|
2 | import builtins from "rollup-plugin-node-builtins";
|
3 | import babel from "rollup-plugin-babel";
|
4 |
|
5 | export default {
|
6 | input: "js/index.js",
|
7 | output: [
|
8 | {
|
9 | file: "common.js",
|
10 | format: "cjs"
|
11 | },
|
12 | {
|
13 | file: "browser.js",
|
14 | format: "iife",
|
15 | name: "AsyncEndpoint"
|
16 | }
|
17 | ],
|
18 | plugins: [
|
19 | builtins(),
|
20 | resolve(),
|
21 | babel({
|
22 | exclude: "node_modules/**", // only transpile our source code
|
23 | plugins: ["external-helpers"]
|
24 | })
|
25 | ]
|
26 | };
|