Closed richvdh closed 4 days ago
LGTM but I think its a breaking change
Shouldn't be? import { foo } from "matrix-js-sdk/src/crypto-api";
should still work?
Shouldn't be? import { foo } from "matrix-js-sdk/src/crypto-api"; should still work?
Indeed, but import { foo } from "matrix-js-sdk/lib/crypto-api.js;
would not. I believe ESM consumers have to import files like this
FML. Really?
It really feels like we need better tests for this stuff, if we're going to try and support it.
Maybe this isn't worthwhile, then.
You're right, but it looks like ESM is borked anyway: https://github.com/matrix-org/matrix-js-sdk/issues/4287
... on which basis, I'm merging this without an X-Breaking-Change.
I found it quite confusing having
CryptoApi
be defined so far from thecrypto-api
folder.