-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish autobahn-js-built to npm #306
Comments
Ok so the problem is hildjj/node-cbor is ES6 and UglifyJS doesn't support it. It should be transpiled by Babel but I'm not sure when this must be done.. |
@oberstet Do you have any info on this topic ? Thanks for your time. |
@adrlen Sorry, I don't have info on that and no time to look into this also. Autobahn officially supports 2 ways of use and distribution:
|
We've had so many struggles getting autobahn to work with webpack that we should've stopped trying a long time ago. But we're committed to a predictable, ergonomic strategy for package bundling, versioning, etc. so this is our solution to the latest quagmire: webpack.config.js {
test: /\.js$/,
include: /mySrcDir|cbor/,
use: {
loader: 'babel-loader',
...
} Note that if you're using create-react-app, this solution requires ejecting. |
I manually copied the pre-built library to my create-react-app. That works but it's not a good solution in the long run. Can you publish the pre-built version to the npm registry? |
Actually, there is already an old pre-build version published on npmjs by a random stranger. @oberstet Why isn't this repo published on npm by your team ? |
@adrlen as we don't have to intro code changes for this (to support yet another JS build thingy), we could push autobahn-js-built to npm of course when doing a release to this repo with low effort, yes. ok, we probably should given this seems to be of interest to quite some developers, and before people use stuff released by strangers, definitely. |
we might need some mods to the packge.json in https://github.com/crossbario/autobahn-js-built maybe a Makefile with a "publish" target that invokes apart from that, this step of releasing also the browser built version to npm should then be documented in https://github.com/crossbario/autobahn-js/blob/master/doc/release-process.md |
Might be worthy to be mentioned here too ? https://github.com/crossbario/autobahn-js#browser-development Thanks ! |
autobahn-js-built v0.11.2 doesn't contain ES6:
|
Any news about this ? Thanks again for this great lib ! |
Ok, I've added steps to release the browser build to npm, and pushed v18.3.1 : https://github.com/crossbario/autobahn-js-browser#using-with-npm |
Thanks a lot! |
I get this error when creating production build.
Content at
static/js/main.955798b7.js:10295,6
Instructions to reproduce:
I am very new to this. Here are my thoughts:
I think the discussion is facebook/create-react-app#984 (comment) is relevant here. It mentions that ES6 syntax in dependencies is not supported by
create-react-app
. If that's the case, can we transpile before publishing theautobahn
npm module?The text was updated successfully, but these errors were encountered: