Skip to content

package: Replace rollup for @rollup/wasm-node#59

Closed
awilfox wants to merge 1 commit intomainfrom
AP-344-wasm-node
Closed

package: Replace rollup for @rollup/wasm-node#59
awilfox wants to merge 1 commit intomainfrom
AP-344-wasm-node

Conversation

@awilfox
Copy link
Copy Markdown
Member

@awilfox awilfox commented Jun 6, 2025

The wasm-node version of Rollup is portable to any Node platform, so it does not have per-CPU and per-OS native builds. By using this as our implementation of Rollup, we avoid having to add each platform/OS we want to run Geodata on. (We can also now run on places Rollup doesn't.)

Closes: AP-344

--

Note: I vendored wasm-node 4.27.4 instead of 4.27.3 to work around an npm bug where it won't do an override when the version is an exact match. Everything appears to work fine, and tests still pass, so I think it is still fully compatible.

The wasm-node version of Rollup is portable to any Node platform, so it
does not have per-CPU and per-OS native builds.  By using this as our
implementation of Rollup, we avoid having to add each platform/OS we
want to run Geodata on.  (We can also now run on places Rollup doesn't.)

Closes: AP-344
@awilfox awilfox requested review from anarchivist and yzhoubk June 6, 2025 22:09
@awilfox awilfox self-assigned this Jun 6, 2025
@yzhoubk
Copy link
Copy Markdown
Contributor

yzhoubk commented Jun 9, 2025

Replaced Rollup with the wasm-node 4.27.4 override, it works well locally.

Copy link
Copy Markdown
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@awilfox
Copy link
Copy Markdown
Member Author

awilfox commented Jun 11, 2025

Rebased and merged as 8dd07a7.

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.

3 participants