Skip to content

use wasm version without having to change module.exports - #14

Closed
tinchoz49 wants to merge 1 commit into
emilbayes:masterfrom
geut:tinchoz49/use-wasm
Closed

use wasm version without having to change module.exports#14
tinchoz49 wants to merge 1 commit into
emilbayes:masterfrom
geut:tinchoz49/use-wasm

Conversation

@tinchoz49

@tinchoz49 tinchoz49 commented Feb 15, 2022

Copy link
Copy Markdown

Some bundle tools like rollup and webpack try to convert commonjs to ESM. Since ESM cannot be change the exports dynamically we lost the oportunity of use the wasm version.

This PR add support to allow to use wasm without having to modify exports in the module system behind.

It's not a breaking change, it doesn't remove the action of modify the exports, it just add another option.

@tinchoz49 tinchoz49 closed this Feb 15, 2022
@tinchoz49
tinchoz49 deleted the tinchoz49/use-wasm branch February 15, 2022 02:38
@tinchoz49

Copy link
Copy Markdown
Author

#8 does what we need

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