2022-09-14 10:30:27 +02:00
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import json from '@rollup/plugin-json';
|
2022-09-14 10:36:42 +02:00
|
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
|
|
|
|
import * as loader from "./generateExports";
|
|
|
|
loader;
|
2022-09-14 10:30:27 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'src/server.ts',
|
|
|
|
external: ['discord.js'],
|
|
|
|
output: {
|
|
|
|
dir: 'dist',
|
|
|
|
format: 'cjs',
|
|
|
|
},
|
|
|
|
plugins: [
|
2022-09-14 10:36:42 +02:00
|
|
|
resolve({ browser: false }),
|
2022-09-14 10:30:27 +02:00
|
|
|
commonjs({ dynamicRequireTargets: [
|
|
|
|
'node_modules/logform/*.js',
|
|
|
|
'./src/responses/citra.json',
|
|
|
|
'./src/responses/yuzu.json',
|
|
|
|
], extensions: ['.mjs', '.js', '.ts'], transformMixedEsModules: true }),
|
|
|
|
json(),
|
2022-09-14 10:36:42 +02:00
|
|
|
typescript(),
|
|
|
|
terser()
|
2022-09-14 10:30:27 +02:00
|
|
|
]
|
|
|
|
};
|