0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/connectors/templates/preset/rollup.config.js
Gao Sun 3f59461df6
chore(deps): update packges (#5545)
* chore(deps): upgrade puppeteer

* chore: replace plugin

* refactor: fix tests
2024-03-27 10:21:46 +08:00

25 lines
672 B
JavaScript

import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import outputSize from 'rollup-plugin-output-size';
/**
* @type {import('rollup').RollupOptions}
*/
const configs = [
{
input: ['src/index.ts'],
output: [{ dir: 'lib' }],
external: ['zod', 'got', '@logto/connector-kit'],
plugins: [
typescript({ tsconfig: 'tsconfig.build.json' }),
nodeResolve({ exportConditions: ['node'], preferBuiltins: true }),
commonjs(),
json(),
outputSize(),
],
},
];
export default configs;