Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
import {terser} from "rollup-plugin-terser"; |
| 2 |
import * as meta from "./package.json"; |
| 3 |
|
| 4 |
const config = { |
| 5 |
input: "src/index.js", |
| 6 |
external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)), |
| 7 |
output: { |
| 8 |
file: `dist/${meta.name}.js`, |
| 9 |
name: "d3", |
| 10 |
format: "umd", |
| 11 |
indent: false, |
| 12 |
extend: true, |
| 13 |
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, |
| 14 |
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) |
| 15 |
}, |
| 16 |
plugins: [] |
| 17 |
}; |
| 18 |
|
| 19 |
export default [ |
| 20 |
config, |
| 21 |
{ |
| 22 |
...config, |
| 23 |
output: { |
| 24 |
...config.output, |
| 25 |
file: `dist/${meta.name}.min.js` |
| 26 |
}, |
| 27 |
plugins: [ |
| 28 |
...config.plugins, |
| 29 |
terser({ |
| 30 |
output: { |
| 31 |
preamble: config.output.banner |
| 32 |
} |
| 33 |
}) |
| 34 |
] |
| 35 |
} |
| 36 |
]; |