From 55b80c6d38e07389699d40f3c5ac4eea1638409d Mon Sep 17 00:00:00 2001 From: Stephen Granade Date: Sat, 16 May 2026 17:08:40 -0500 Subject: [PATCH] chore:Remove unneeded script tag generation. Obsidian's scanner really didn't like that! --- esbuild.config.mjs | 42 ++++++++++++++++++++++++++++++++++++++++-- tsconfig.json | 2 +- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 00306dd..739ca84 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,6 +1,7 @@ import esbuild from "esbuild"; import process from "process"; import { copyFileSync, readFileSync, writeFileSync } from "fs"; +import { readFile } from "fs/promises"; const pkg = JSON.parse(readFileSync("./package.json", "utf8")); const banner = `/*! ${pkg.name} v${pkg.version} | (c) ${pkg.author.name} | ${pkg.author.url} */`; @@ -20,7 +21,7 @@ const esbuildProblemMatcherPlugin = { result.errors.forEach(({ text, location }) => { console.error(`✘ [ERROR] ${text}`); console.error( - ` ${location.file}:${location.line}:${location.column}:` + ` ${location.file}:${location.line}:${location.column}:`, ); }); console.log("[watch] build finished"); @@ -44,13 +45,48 @@ const updateManifestPlugin = { manifest.version = pkg.version; writeFileSync( outdir + "/manifest.json", - JSON.stringify(manifest, null, 2) + JSON.stringify(manifest, null, 2), ); console.log("✅ manifest.json updated"); }); }, }; +const stripScriptTagsPlugin = { + // `docx` uses `jszip`, which uses `lie`, which uses `immediate`. That module + // includes an ancient polyfill to handle microtask scheduling that dynamically injects + // a `