You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use es6 modules and no build step - just ship them straight to the browser.
I thought I had a conflict with grpc-web, which hasn't made the jump from commonjs grpc/grpc-web#535
But @tgrospic clarified that I don't need to use gRPC. Just protobuf for signing deploys.
Meanwhile, elliptic and blakejs are commonjs.
snowpack will almost make up the difference, but commonjs modules only export a default, and @tgrospic/rnode-grpc-js does import { ec } from 'elliptic'. Snowpack has a namedExports work-around, but it's only working in snowpack dev mode, not snowpack build mode.
I think I can avoid importing @tgrospic/rnode-grpc-js...
I'm trying to use es6 modules and no build step - just ship them straight to the browser.
I thought I had a conflict with grpc-web, which hasn't made the jump from commonjs grpc/grpc-web#535
But @tgrospic clarified that I don't need to use gRPC. Just protobuf for signing deploys.
Meanwhile, elliptic and blakejs are commonjs.
snowpack will almost make up the difference, but commonjs modules only export a default, and
@tgrospic/rnode-grpc-js
doesimport { ec } from 'elliptic'
. Snowpack has anamedExports
work-around, but it's only working insnowpack dev
mode, notsnowpack build
mode.I think I can avoid importing
@tgrospic/rnode-grpc-js
...See also: tgrospic/rnode-grpc-js#8
cc @TheoXD
The text was updated successfully, but these errors were encountered: