Skip to content

feat(wasm): implement single-file WebAssembly build for improved web compatibility #2099

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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

abretonc7s
Copy link

@abretonc7s abretonc7s commented Apr 4, 2025

Description

Overview

This PR implements a new build process that consolidates WebAssembly output into a single file, improving compatibility for web environments and preparing the groundwork for React Native integration with sherpa-onnx.

Changes

  • Created a new build script for generating a combined WebAssembly output
  • Updated README documentation to reflect the new build process and output locations

Purpose

The primary goal of these changes is to improve web compatibility by consolidating the WebAssembly build into a single file. This work is foundational for creating a React Native wrapper for sherpa-onnx, which will provide full web compatibility across platforms.

Technical Details

  • The WebAssembly build now generates a single file output that encapsulates all necessary functionality
  • Build artifacts are properly excluded from version control
  • Documentation has been updated to reflect the new build and output structure

Breaking Changes

None. This change maintains backward compatibility while adding new functionality.

Migration Steps

No migration steps are required for existing implementations.

@abretonc7s abretonc7s changed the title feat: web wasm with single file feat(wasm): implement single-file WebAssembly build for improved web compatibility Apr 8, 2025
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.

1 participant