Skip to content

Conversation

expede
Copy link
Member

@expede expede commented Sep 23, 2025

Very WIP!

Copy link
Member Author

@expede expede left a comment

Choose a reason for hiding this comment

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

@alexjg just confirming that these are the only bits that I need for JS packaging across ESM/CJS/etc?

export const wasmBase64: string;
}
`;
writeFileSync(typesFile, typesContents);
Copy link
Member Author

Choose a reason for hiding this comment

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

This file

Comment on lines +24 to +44
"exports": {
".": {
"node": {
"import": "./pkg-node/subduction_wasm.js",
"require": "./pkg-node/subduction_wasm.js",
"types": "./pkg-node/subduction_wasm.d.ts"
},
"import": "./pkg/subduction_wasm.js",
"require": "./pkg/subduction_wasm.js",
"types": "./pkg/subduction_wasm.d.ts"
},
"./slim": {
"types": "./pkg-slim/index.d.ts",
"import": "./pkg-slim/index.js"
},
"./subduction_wasm.wasm": "./pkg-slim/subduction_wasm_bg.wasm",
"./subduction_wasm.base64.js": {
"import": "./pkg-slim/subduction_wasm_bg.wasm.base64.js",
"types": "./pkg-slim/subduction_wasm_bg.wasm.base64.d.ts"
}
},
Copy link
Member Author

Choose a reason for hiding this comment

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

These lines

.map((c) => c.charCodeAt(0)),
);
subduction.initSync({ module: wasm });
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This file

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