Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
import cleanup from 'rollup-plugin-cleanup' |
| 2 |
import ts from 'rollup-plugin-ts' |
| 3 |
import transformDefaultExport from 'ts-transform-default-export' |
| 4 |
|
| 5 |
const output = { |
| 6 |
format: 'cjs', |
| 7 |
file: './build/index.cjs', |
| 8 |
exports: 'default' |
| 9 |
} |
| 10 |
|
| 11 |
if (process.env.NODE_ENV === 'test') output.sourcemap = true |
| 12 |
|
| 13 |
export default { |
| 14 |
input: './lib/index.ts', |
| 15 |
output, |
| 16 |
plugins: [ |
| 17 |
ts({ |
| 18 |
transformers: ({ program }) => ({ |
| 19 |
afterDeclarations: transformDefaultExport(program) |
| 20 |
}) |
| 21 |
}), |
| 22 |
cleanup({ |
| 23 |
comments: 'none', |
| 24 |
extensions: ['*'] |
| 25 |
}) |
| 26 |
] |
| 27 |
} |