mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 01:02:10 +08:00
22 lines
500 B
TypeScript
22 lines
500 B
TypeScript
import { createRequire } from 'node:module';
|
|
|
|
import { cjsOutput, entryPoint, esmOutput, plugins } 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-runtime')],
|
|
treeshake: false,
|
|
},
|
|
{
|
|
input: 'src/unstable.ts',
|
|
plugins,
|
|
output: [cjsOutput(pkg), esmOutput(pkg, 'grafana-runtime')],
|
|
treeshake: false,
|
|
},
|
|
];
|