mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Gitbeaker has been split up into 5 subpackages: gitbeaker-core, gitbeaker-node, gitbeaker-cli, gitbeaker-browser and gitbeaker-requester-utils.
gitbeaker-[node,cli,browser] are enviroment
specific sub packages. For example, if you want to use gitbeaker in a NodeJS environment, use gitbeaker-node. gitbeaker-core is where all the
base logic exists, and gitbeaker-requester-utils is a collection of utility functions for making custom requester libraries.
BREAKING CHANGE: 🧨 This migration requires users to import specific subpackages. For NodeJS
usage, that would be @gitbeaker/node.
20 lines
565 B
JavaScript
20 lines
565 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import builtins from 'rollup-plugin-node-builtins';
|
|
import globals from 'rollup-plugin-node-globals';
|
|
import pkg from './package.json';
|
|
import { commonConfig, commonPlugins } from '../../rollup.config';
|
|
|
|
export default [
|
|
{
|
|
...commonConfig,
|
|
output: {
|
|
file: pkg.browser,
|
|
name: 'gitbeaker',
|
|
format: 'umd',
|
|
exports: 'named',
|
|
},
|
|
plugins: [globals(), builtins(), resolve({ browser: true }), commonjs(), ...commonPlugins],
|
|
},
|
|
];
|