selectstarfromusers_obsidia.../esbuild.config.mjs
Art Malanok 9f88021fed feat: obsidian-tasks v0.1.0 — clean, minimal task board plugin
Board and Focus view modes with customizable buckets, secondary
grouping by any frontmatter property, inline #task tracking from
notes with bidirectional sync, drag-and-drop, completion animations,
ARIA accessibility, and mobile-friendly touch targets.

Co-authored-by: Isaac
2026-03-25 20:48:39 -07:00

24 lines
557 B
JavaScript

import esbuild from "esbuild";
import { existsSync, mkdirSync } from "fs";
const isWatch = process.argv.includes("--watch");
const context = await esbuild.context({
entryPoints: ["src/main.ts"],
bundle: true,
external: ["obsidian", "electron", "@codemirror/*", "@lezer/*"],
format: "cjs",
target: "es2020",
logLevel: "info",
sourcemap: "inline",
treeShaking: true,
outfile: "main.js",
});
if (isWatch) {
await context.watch();
console.log("Watching for changes...");
} else {
await context.rebuild();
await context.dispose();
}