Open smaye81 opened 1 year ago
We have removed the fallback files in https://github.com/bufbuild/protobuf-es/pull/804. If this does not cause any issues, we can safely do it here as well.
With Parcel and Metro, subpath exports need to be enabled, see https://github.com/bufbuild/protobuf-es/blob/main/MANUAL.md#parcelmetro-fails-to-resolve-imports
Currently, we have fallback files in
packages/connect
for consumers that don't support subpath exports (protocol.js
,protocol-connect.js
,protocol-grpc.js
, andprotocol-grpc-web.js
).However, these files may not be needed as it is basically supporting Node.js v10 module resolution. Since Node 10 has been EOL for more than two years, we could potentially remove these altogether.
This could potentially break some bundlers, so we'd have to conduct an investigation into whether we could safely remove them.
For further context, see https://github.com/connectrpc/connect-es/pull/838#issuecomment-1737869511