mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 03:52:31 +08:00

* build(packages): add extendable pieces of rollup config * build(packages): rewrite rollup configs to make use of extendable parts
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import { createRequire } from 'node:module';
|
|
|
|
import { cjsOutput, entryPoint, esmOutput, plugins, tsDeclarationOutput } from '../rollup.config.parts';
|
|
|
|
const rq = createRequire(import.meta.url);
|
|
const pkg = rq('./package.json');
|
|
|
|
export default [
|
|
{
|
|
input: entryPoint,
|
|
plugins,
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-flamegraph')],
|
|
},
|
|
tsDeclarationOutput(pkg),
|
|
];
|