From 48c4d7d2690140d0931c9e5dae09c9d8ebc70dfa Mon Sep 17 00:00:00 2001 From: WFH Brian Date: Thu, 13 Jun 2024 13:50:04 -0400 Subject: [PATCH] update output folder to be consisent with community plugin; always include sourcemap in bundle --- esbuild.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 2471b0e..1e43429 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -20,7 +20,7 @@ const copy_to_plugins = { name: 'copy_to_plugins', setup(build) { build.onEnd(() => { - const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-graph-view"); + const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-visualizer"); if (!fs.existsSync(plugin_path)) { fs.mkdirSync(plugin_path); @@ -61,7 +61,7 @@ const context = await esbuild.context({ format: "cjs", target: "es2018", logLevel: "info", - sourcemap: prod ? false : "inline", + sourcemap: "inline", treeShaking: true, outfile: "main.js", plugins: [