Skip to content

Commit

Permalink
fix: Adds setNodeIcon helper utility
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 19, 2024
1 parent cf6277a commit ad30fb4
Show file tree
Hide file tree
Showing 8 changed files with 2,069 additions and 177 deletions.
18 changes: 16 additions & 2 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import sveltePreprocess from "svelte-preprocess";
import process from "process";
import builtins from "builtin-modules";
import { config } from "dotenv";
import { build } from "tsup";

config();

Expand All @@ -15,11 +16,13 @@ if you want to view the source, please visit the github repository of this modul

const prod = process.argv[2] === "production";



const parameters = {
banner: {
js: banner
},
entryPoints: ["src/main.ts", "src/styles.css"],
entryPoints: ["src/main.ts"],
bundle: true,
external: [
"obsidian",
Expand Down Expand Up @@ -53,7 +56,11 @@ const parameters = {
target: "es2020",
logLevel: "info",
sourcemap: prod ? false : "inline",
minify: prod,
minifyWhitespace: true,
/** Documentation: https://esbuild.github.io/api/#minify */
minifyIdentifiers: false,
/** Documentation: https://esbuild.github.io/api/#minify */
minifySyntax: true,
treeShaking: true,
outdir: "./build",
plugins: [
Expand Down Expand Up @@ -81,5 +88,12 @@ if (prod) {
});
} else {
let ctx = await esbuild.context(parameters);

await build({
entry: ["./src/main.ts"],
dts: {
only: true
}
});
await ctx.watch();
}
Loading

0 comments on commit ad30fb4

Please sign in to comment.