-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: fixed wasm path resolution * build: updated version to 0.9.6
- Loading branch information
1 parent
256b955
commit 453c4a9
Showing
3 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { readFileSync } from 'node:fs'; | ||
import { resolve } from 'node:path'; | ||
|
||
import { initializeImageMagick as baseInitializeImageMagick } from '@imagemagick/magick-wasm'; | ||
|
||
export default async function initializeImageMagick(): Promise<void> { | ||
const wasmBytes = readFileSync( | ||
resolve('node_modules/@imagemagick/magick-wasm/dist/magick.wasm'), | ||
require.resolve('@imagemagick/magick-wasm/magick.wasm'), | ||
); | ||
await baseInitializeImageMagick(wasmBytes); | ||
} |