1
Fork 0
solar-conflux/purescript/kombinators/build.js
2023-10-29 02:44:23 +02:00

19 lines
446 B
JavaScript

const esbuild = require("esbuild");
const PurescriptPlugin = require("esbuild-plugin-purescript");
const production = process.env.NODE_ENV === "production";
esbuild
.build({
platform: "node",
entryPoints: ["src/Foreign/blueprint.ts"],
bundle: true,
minify: production,
outdir: "dist",
watch: true,
plugins: [PurescriptPlugin()],
sourcemap: "both",
target: "es2016",
})
.catch((_e) => process.exit(1));