2024-09-27 17:00:13 +08:00
|
|
|
import { createRequire } from 'node:module';
|
2025-02-25 16:11:09 +08:00
|
|
|
|
2025-06-12 21:25:16 +08:00
|
|
|
import { cjsOutput, entryPoint, esmOutput, plugins } from '../rollup.config.parts';
|
2023-09-12 18:28:48 +08:00
|
|
|
|
2024-09-27 17:00:13 +08:00
|
|
|
const rq = createRequire(import.meta.url);
|
|
|
|
const pkg = rq('./package.json');
|
2023-09-12 18:28:48 +08:00
|
|
|
|
|
|
|
export default [
|
|
|
|
{
|
2025-02-25 16:11:09 +08:00
|
|
|
input: entryPoint,
|
|
|
|
plugins,
|
|
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-flamegraph')],
|
2025-07-24 16:54:02 +08:00
|
|
|
treeshake: false,
|
2023-09-12 18:28:48 +08:00
|
|
|
},
|
|
|
|
];
|