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

fix(ci): insert *_bg files in @swc/wasm-web (#1291) #1293

Merged
merged 1 commit into from
Dec 26, 2020

Conversation

9oelM
Copy link
Contributor

@9oelM 9oelM commented Dec 26, 2020

As described by #1291, right now @swc/wasm-web cannot be used after installation because @swc/wasm-web does not include files that wasm-bindgen produces when it gets published.

This happens due to a bug in wasm-pack (rustwasm/wasm-pack#837).

Therefore, the simplest solution would just be including the files manually in package.json before publishing.
Initially I thought the only file that needs to be included would be wasm_bg.js, but wasm_bg.wasm.d.ts comes along with the build output too, so there's no reason not to include it as a part of API.

This would allow #50 to get going too.

Would close #1291 if it gets merged

cc @kdy1

@CLAassistant
Copy link

CLAassistant commented Dec 26, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@kdy1 kdy1 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!

@kdy1 kdy1 merged commit 066bb4e into swc-project:master Dec 26, 2020
@punkeel
Copy link
Contributor

punkeel commented Dec 26, 2020

Thanks!

@kdy1 kdy1 added this to the v1.2.42 milestone Dec 27, 2020
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

@swc/wasm-web references wasm_bg.js but it does not get published together with it
4 participants