Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include browser version in npm package

See original GitHub issue

Recently we had a discussion and made a move to remove our dependency on bower for our application. This has greatly improved consistency, and lowered our dependency count. However the npm version of Autobahn does not include a browser compatible version.

I see that a standalone version in being created in the Makefile

browserify lib/autobahn.js --standalone autobahn -o build/autobahn.js

However this is being ignored in the npm package in the .npmignore.

Would it be possible to include this file in the npm package?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

oberstetcommented, May 15, 2016

This is now published, please see here

yatskevichcommented, May 14, 2016

npm fetches autobahn from autobahn-js-built without any issue. The only warning I see is emitted by webpack (I use webpack in my app):

WARNING in ./~/autobahn/autobahn.js
Critical dependencies:
1:481-488 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/autobahn/autobahn.js 1:481-488
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use npm modules in browser? is possible to use them ...
Yes. But you need node just to install browserify and to bundle your javascripts into a single file that you can include directly...
Read more >
detect-browser - npm
Unpack a browser type and version from the useragent string. Latest version: 5.3.0, last published: a year ago. Start using detect-browser ...
Read more >
browser - npm
Latest version: 0.2.6, last published: 10 years ago. Start using browser in your project by running `npm i browser`.
Read more >
browser-update - npm
Go to, choose the browsers you want to be notified and embed the code into your website. Or use the npm package:...
Read more >
browser-version - npm
a module for detecting the browser version. Latest version: 1.0.0, last published: 7 years ago. Start using browser-version in your project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found