Skip to content

Init Wasm module only once in browsers#615

Merged
devongovett merged 2 commits intomasterfrom
wasm-browser-init-once
Oct 30, 2023
Merged

Init Wasm module only once in browsers#615
devongovett merged 2 commits intomasterfrom
wasm-browser-init-once

Conversation

@mischnic
Copy link
Member

@mischnic mischnic commented Oct 27, 2023

If you always (conservatively) call await init(), e.g. like Parcel now does in CSSTransformer.js on every file transformation, the wasm module is constantly re-initialized.

@mischnic mischnic requested a review from devongovett October 27, 2023 18:39
@mischnic mischnic force-pushed the wasm-browser-init-once branch from 46db50a to f168549 Compare October 30, 2023 17:04
@devongovett devongovett merged commit d225d68 into master Oct 30, 2023
@devongovett devongovett deleted the wasm-browser-init-once branch October 30, 2023 19:09
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.

2 participants