Closed
Description
I just ran into the dual package hazard problem with @bufbuild/protobuf
and the exported WKT types. I was checking instanceof
on a Timestap type and that failed because the object instance I got was from the CJS export (through a CJS library) and I was comparing it against Timestamp
via my local ESM import.
Personally, I think it's time to drop CJS altogether. Top-level await has been available for quite some time now and is a perfectly acceptable escape hatch for anyone who needs to import ESM modules into CJS via dynamic import.
Metadata
Metadata
Assignees
Labels
No labels