@noxfly/noxus
Version:
Simulate lightweight HTTP-like requests between renderer and main process in Electron applications with MessagePort, with structured and modular design.
35 lines (32 loc) • 680 B
text/typescript
import { defineConfig } from "tsup";
const copyrights = `
/**
* @copyright 2025 NoxFly
* @license MIT
* @author NoxFly
*/
`.trim()
export default defineConfig({
entry: {
renderer: "src/index.ts",
main: "src/main.ts",
child: "src/non-electron-process.ts",
},
keepNames: true,
minifyIdentifiers: false,
name: "noxus",
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
clean: true,
outDir: "dist",
external: ["electron"],
target: "es2020",
minify: false,
splitting: false,
shims: false,
treeshake: false,
banner: {
js: copyrights,
}
});