Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASM file to package exports #80

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Add WASM file to package exports #80

merged 1 commit into from
Apr 27, 2023

Conversation

Peeterush
Copy link
Contributor

Separately exporting the WASM file removes the need to copy the WASM file to a user's project.

E.g. Vite will automatically include it in your bundle when used as such:

import { initializeImageMagick } from '@imagemagick/magick-wasm';

initializeImageMagick(
  new URL('@imagemagick/magick-wasm/magick.wasm', import.meta.url).href
).then(
  /* ... */
);

@dlemstra
Copy link
Owner

Thanks for helping me out with this project again.

@dlemstra dlemstra merged commit ab91cb6 into dlemstra:main Apr 27, 2023
6 checks passed
@Peeterush Peeterush deleted the export-wasm-file branch April 27, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants