mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 14:15:38 +01:00
26 lines
699 B
JavaScript
26 lines
699 B
JavaScript
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';
|
|
|
|
export default {
|
|
input: 'src/server.ts',
|
|
external: ['discord.js'],
|
|
output: {
|
|
dir: 'dist',
|
|
format: 'cjs',
|
|
},
|
|
plugins: [
|
|
resolve({
|
|
browser: false
|
|
}),
|
|
commonjs({ dynamicRequireTargets: [
|
|
'node_modules/logform/*.js',
|
|
'./src/responses/citra.json',
|
|
'./src/responses/yuzu.json',
|
|
], extensions: ['.mjs', '.js', '.ts'], transformMixedEsModules: true }),
|
|
json(),
|
|
typescript()
|
|
]
|
|
};
|