update output folder to be consisent with community plugin; always include sourcemap in bundle

This commit is contained in:
WFH Brian 2024-06-13 13:50:04 -04:00
parent 35744afb37
commit 48c4d7d269

View file

@ -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: [