mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 06:15:40 +01:00
35 lines
829 B
JavaScript
35 lines
829 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";
|
|
loader;
|
|
|
|
export default {
|
|
input: "src/server.ts",
|
|
external: ["discord.js"],
|
|
preserveEntrySignatures: false,
|
|
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,
|
|
ignoreGlobal: true,
|
|
}),
|
|
json(),
|
|
typescript(),
|
|
terser(),
|
|
],
|
|
};
|