(options)
| 19 | }); |
| 20 | |
| 21 | function config(options) { |
| 22 | return { |
| 23 | ...options, |
| 24 | input: "src/index.js", |
| 25 | external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), |
| 26 | output: { |
| 27 | ...options.output, |
| 28 | name: "d3", |
| 29 | indent: false, |
| 30 | extend: true, |
| 31 | banner, |
| 32 | globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) |
| 33 | }, |
| 34 | plugins: [ |
| 35 | RollupNode(), |
| 36 | ...(options.plugins ?? []) |
| 37 | ] |
| 38 | }; |
| 39 | } |
| 40 | |
| 41 | export default [ |
| 42 | config({ |