mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
25 lines
617 B
JavaScript
25 lines
617 B
JavaScript
import replace from '@rollup/plugin-replace';
|
|
import pkg from './package.json';
|
|
import { commonConfig, commonPlugins } from '../../rollup.config';
|
|
|
|
export default {
|
|
...commonConfig,
|
|
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})],
|
|
output: [
|
|
{
|
|
file: pkg.main, // CommonJS (for Node) (for bundlers) build.
|
|
format: 'cjs',
|
|
},
|
|
{
|
|
file: pkg.module, // ES module (for bundlers) build.
|
|
format: 'es',
|
|
},
|
|
],
|
|
plugins: [
|
|
replace({
|
|
__apiMap__: JSON.stringify(require('./dist/map.json'))
|
|
}),
|
|
...commonPlugins,
|
|
]
|
|
};
|