mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-22 18:56:29 +00:00
32 lines
725 B
JavaScript
32 lines
725 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";
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
import * as loader from "./generateExports.js";
|
|
loader;
|
|
|
|
export default {
|
|
input: "src/server.ts",
|
|
preserveEntrySignatures: false,
|
|
output: {
|
|
dir: "dist",
|
|
format: "cjs",
|
|
},
|
|
plugins: [
|
|
resolve({ browser: false }),
|
|
commonjs({
|
|
dynamicRequireTargets: [
|
|
"node_modules/logform/*.js"
|
|
],
|
|
extensions: [".mjs", ".js", ".ts"],
|
|
transformMixedEsModules: true,
|
|
ignoreGlobal: true,
|
|
}),
|
|
json(),
|
|
typescript(),
|
|
terser(),
|
|
],
|
|
};
|