refactor plugin, split into modules

This commit is contained in:
Nystik
2026-03-27 19:53:19 +01:00
parent 59a1c293bf
commit 47cf768e26
7 changed files with 448 additions and 216 deletions

View File

@@ -31,4 +31,16 @@ Promise.all([
plugins: [sveltePlugin({ compilerOptions: { css: "injected" } })],
logLevel: "info",
}),
// Build ignis-bridge plugin
esbuild.build({
entryPoints: [path.join(__dirname, "plugin", "src", "main.js")],
bundle: true,
outfile: path.join(__dirname, "plugin", "main.js"),
format: "cjs",
platform: "browser",
target: ["chrome90"],
external: ["obsidian"],
logLevel: "info",
}),
]).catch(() => process.exit(1));