Skip to content

Commit 168f310

Browse files
Copilotcyanzhong
andauthored
Reduce plugin bundle size (#24)
* Initial plan * fix: avoid duplicated inlined harper wasm in bundle Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
1 parent 511476f commit 168f310

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { LocalLinter, binaryInlined, type LintConfig } from 'harper.js';
1+
import { LocalLinter, binary, type LintConfig } from 'harper.js';
22
import { MarkEdit } from 'markedit-api';
33
import { getProofreadingSettings } from './settings';
44
import { presetDisabledRules } from './rules';
55
import { presetDisabledKinds } from './kinds';
66
import { loadWords, saveWords } from './dict';
77

8-
const linter = new LocalLinter({ binary: binaryInlined });
8+
const linter = new LocalLinter({ binary });
99
const settings = getProofreadingSettings(MarkEdit.userSettings);
1010
const disabledKinds = resolveDisabledKinds();
1111
const linterReady = configureLinter().catch(error => {

0 commit comments

Comments
 (0)