From 9fbb81ec551fa8cc892a790d80dbe094256a911d Mon Sep 17 00:00:00 2001 From: akshay-hudev Date: Fri, 11 Sep 2026 11:26:35 +0000 Subject: [PATCH] Integrity-verified, quality-unverified draft: remove 1 finding --- esbuild.config.mjs | 49 ---------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 esbuild.config.mjs diff --git a/esbuild.config.mjs b/esbuild.config.mjs deleted file mode 100644 index 7727495..0000000 --- a/esbuild.config.mjs +++ /dev/null @@ -1,49 +0,0 @@ -import esbuild from 'esbuild'; -import process from 'process'; -import builtins from 'builtin-modules'; - -const banner = `/* -THIS IS A GENERATED/BUNDLED FILE BY ESBUILD -if you want to view the source, please visit the github repository of this plugin -*/ -`; - -const prod = process.argv[2] === 'production'; - -const context = await esbuild.context({ - banner: { - js: banner, - }, - entryPoints: ['src/main.ts'], - bundle: true, - external: [ - 'obsidian', - 'electron', - '@codemirror/autocomplete', - '@codemirror/collab', - '@codemirror/commands', - '@codemirror/language', - '@codemirror/lint', - '@codemirror/search', - '@codemirror/state', - '@codemirror/view', - '@lezer/common', - '@lezer/highlight', - '@lezer/lr', - ...builtins, - ], - format: 'cjs', - target: 'es2018', - logLevel: 'info', - sourcemap: prod ? false : 'inline', - treeShaking: true, - outfile: 'main.js', - minify: prod, -}); - -if (prod) { - await context.rebuild(); - process.exit(0); -} else { - await context.watch(); -}