Closed ghost closed 3 years ago
I am running into this issue as well. If anybody is able to confirm a solution or workaround, please post.
Related to #57
Sadly, no further progress has been done :(
@klappy
After digging an hour into the issue I found a quick fix
npm i --prefix ./node_modules/autobahn/node_modules/cbor babel-preset-env babel-polyfill --save-dev
/usr/local/bin/babel --presets env --plugins transform-runtime ./node_modules/autobahn/node_modules/cbor/lib --out-dir ./node_modules/autobahn/node_modules/cbor/lib.es5
mv ./node_modules/autobahn/node_modules/cbor/lib ./node_modules/autobahn/node_modules/cbor/lib.es6
mv ./node_modules/autobahn/node_modules/cbor/lib.es5 ./node_modules/autobahn/node_modules/cbor/lib
npm run build
If someone sends me a PR that does the necessary things and doesn't impact the node build, i'll be happy to include it.
cbor-web
is now published at version 7.0.0, it's what you want.
I was trying to
npm run build
in create-react-app and it failed to minify. create-react-app recommends compiling into ES5. Could you publish pre-compiled to npm?