Command-fix/rollup.config.mjs
liushuyu 08abde2d7c
deps: update dependencies ...
... and use a newer terser plugin for rollup
2022-12-06 18:49:05 -07:00

34 lines
801 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",
"./src/responses/citra.json",
"./src/responses/yuzu.json",
],
extensions: [".mjs", ".js", ".ts"],
transformMixedEsModules: true,
ignoreGlobal: true,
}),
json(),
typescript(),
terser(),
],
};