mirror of
https://github.com/luxfhe/permit.git
synced 2026-10-30 17:10:15 +00:00
- Remove Zama fhevmjs dependencies - Use @luxfhe/wasm and @luxfhe/kms - Update types for native FHE API
31 lines
592 B
TypeScript
31 lines
592 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: "./src/core/index.ts",
|
|
},
|
|
format: ["cjs", "esm"],
|
|
dts: true,
|
|
splitting: false,
|
|
sourcemap: true,
|
|
clean: true,
|
|
external: ["@luxfhe/wasm"],
|
|
esbuildOptions(options) {
|
|
options.assetNames = "assets/[name]";
|
|
options.loader = {
|
|
...options.loader,
|
|
".wasm": "file",
|
|
};
|
|
},
|
|
outDir: "dist",
|
|
treeshake: true,
|
|
minify: false,
|
|
outExtension({ format }) {
|
|
return {
|
|
js: format === "cjs" ? ".js" : ".mjs",
|
|
};
|
|
},
|
|
legacyOutput: false,
|
|
noExternal: [],
|
|
});
|