Reduce plugin bundle size#24
Conversation
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
|
@copilot The change really cuts a lot of bundle size, which is good. However, I would like to understand a bit deeper. Like, why this works and is there any feature we lost due to this change? What is the recommended approach choosing between |
Both
At runtime, The duplication happened because our build uses
Even though Switching to Recommended approach: |
|
@copilot Does |
No. In short, both |
The MarkEdit proofreading bundle was larger than Harper’s Obsidian plugin despite fewer features. Root cause was double inclusion of Harper’s inlined WASM payload in the final single-file build.
Root cause
src/lint.tsinstantiatedLocalLinterwithbinaryInlined, which embeds the full WASM data URL directly in JS.Change made
binaryinstead ofbinaryInlinedinsrc/lint.ts.Impact
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.