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

Split out Component binaries into @ruby/wasm-wasip2 package #528

Merged
merged 11 commits into from
Sep 8, 2024

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Sep 8, 2024

The @ruby/head-wasm-wasi package included both the Core Module and the Component
binaries but it has two problems:

  1. npm package size was too large and it was very close to the limit of
    the jsdelivr CDN.
  2. The Component model build (in other words, dynamic linking build)
    well supports incremental build. But the Core Module build does not
    because it requires to re-link C-extensions every time statically.
    And it led to clean build every time. Splitting out the Component
    build makes the p2 package itself incremental buildable.

The `@ruby/wasm-wasi` package included both the Core Module and the Component
binaries but it has two problems:
1. npm package size was too large and it was very close to the limit of
   the jsdelivr CDN.
2. The Component model build (in other words, dynamic linking build)
   well supports incremental build. But the Core Module build does not
   because it requires to re-link C-extensions every time statically.
   And it led to clean build every time. Splitting out the Component
   build makes the p2 package itself incremental buildable.
…s private

I'm not confident that the name of the package, `@ruby/head-wasm-wasip2`,
is the best name for the package. So I'm marking it as private for now.
@kateinoigakukun kateinoigakukun merged commit 8da2029 into main Sep 8, 2024
30 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/add-wasip2-pkg branch September 8, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant