Currently, I have a package with async/dynamic exports that I import in the following manner:
(async function() {
const libEd = await import("../../.cache/ed25519wars/index.js");
})();
I plan to re-expose certain functions from libEd
within a class structure:
export class Something {
static from_X() {
return libEd.genFromX();
}
do_Y() {
return libEd.doY();
}
}
How can I achieve this?
Additional Information:
- The package with async/dynamic exports is created using webpack to pack webassembly. I am unsure if modifications can be made to this aspect.
- I have the flexibility to modify how I import the package.
- We can also explore alternative methods to re-expose/group the functions instead of using a class.