Comments (4)
As far as I can tell from crossbario/autobahn-js#306, this is because your system doesn't support ES6 classes. If that's the case, whatever system that is, I'm not interested in supporting it directly. You might be able to use babel to transpile to an ancient javascript version if that's what you want. I'll leave this open for a bit in case you want to talk me into a particular fix.
from node-cbor.
The problem I am encountering is that dependents can't successfully transpile using babel and webpack. We ran into this issue with some of our own NPM packages.
There are lots of best practice blog posts and google searches that led us to believe that it is standard best practice to transpile before publishing to help avoid issues in libraries that depend on them. Don't take my word for it, I just did some quick google searching and there are many results for this.
For private projects the transpiler can be incorporated in to the build process. But, how do we proceed when we want to make a project public and usable by others? This is particular important when we publish a package to NPM. NPM packages should run on “ES5 systems”.
- https://medium.com/@tarkus/how-to-build-and-publish-es6-modules-today-with-babel-and-rollup-4426d9c7ca71
- https://hackernoon.com/how-to-publish-your-package-on-npm-7fc1f5aae600
from node-cbor.
I first bypassed this adding cbor in the babel-loader include section of webpack config, but it appears that the build is broken in the end...
from node-cbor.
Having heard nothing further, WONTFIX. Feel free to comment more and I'll reopen if needed.
from node-cbor.
Related Issues (20)
- MAXINT64: BigInt('0xffffffffffffffff') crashes on React-Native HOT 12
- Error: Unexpected data: 0x44 HOT 32
- react-native-cli HOT 5
- Webpack minimize causes cbor.encode to generate a different value HOT 5
- Fix Buffer converter matcher being mangled in minimised builds HOT 1
- ReferenceError: Can't find variable: TextDecoder HOT 20
- cbor-diag HOT 5
- Behavior in Nativescript HOT 19
- Encode error when source is too large HOT 4
- switch to using Uint8Array instead of using buffer HOT 3
- Type array tags CBOR HOT 2
- Support `ArrayBufferView` as `BufferLike` HOT 1
- Move to ESM HOT 4
- cbor tagged object not same after decoding and again encoding HOT 8
- cbor-web: Unexpected token on rollup build, is `for(;;)` supposed to be here? HOT 8
- Encoding a "large" 5MB JSON Object HOT 4
- Cbor <> CborWeb issue HOT 1
- empty maps parsed as objects, not maps HOT 4
- diagnose crashes when cose sign1 payload is null HOT 2
- How to turn off taging on Encode for Uint8Arrays? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-cbor.