-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
harper.js
is now imported properly on the website
- Loading branch information
1 parent
69c0780
commit 7ec1673
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import wasmUrl from 'wasm/harper_wasm_bg.wasm?url'; | ||
|
||
/** Load the WebAssembly manually and dynamically, making sure to setup infrastructure. */ | ||
export default async function loadWasm() { | ||
const wasm = await import('wasm'); | ||
await wasm.default(wasmUrl); | ||
await wasm.default(); | ||
|
||
return wasm; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": "harper", | ||
"name": "Harper", | ||
"version": "0.12.0", | ||
"minAppVersion": "0.15.0", | ||
"description": "The Grammar Checker for Developers", | ||
"author": "Elijah Potter", | ||
"authorUrl": "https://elijahpotter.dev", | ||
"isDesktopOnly": true | ||
} |