2022-09-17 02:01:37 +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-12-07 02:49:05 +01:00
|
|
|
import terser from '@rollup/plugin-terser';
|
2022-09-14 10:36:42 +02:00
|
|
|
|
2022-10-13 00:36:25 +02:00
|
|
|
import * as loader from "./generateExports.js";
|
2022-09-14 10:36:42 +02:00
|
|
|
loader;
|
2022-09-14 10:30:27 +02:00
|
|
|
|
|
|
|
export default {
|
2022-09-17 02:01:37 +02:00
|
|
|
input: "src/server.ts",
|
|
|
|
preserveEntrySignatures: false,
|
|
|
|
output: {
|
|
|
|
dir: "dist",
|
|
|
|
format: "cjs",
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
resolve({ browser: false }),
|
|
|
|
commonjs({
|
|
|
|
extensions: [".mjs", ".js", ".ts"],
|
|
|
|
transformMixedEsModules: true,
|
|
|
|
ignoreGlobal: true,
|
|
|
|
}),
|
|
|
|
json(),
|
|
|
|
typescript(),
|
|
|
|
terser(),
|
|
|
|
],
|
2022-09-14 10:30:27 +02:00
|
|
|
};
|