question-mark
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.

browserify support?

See original GitHub issue

This lib is written with ES6, so it doesn’t get parsed correctly with browserify:

Parse error at -:3082,12
SyntaxError: Unexpected token: name (x)
Error

It’d be great if there were a browser version available to serve as a polyfill for IE.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:30 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
Sebmastercommented, Mar 2, 2017

My use case is the same, except there is a file size limitation because it’s not just for the server.

You can’t be spec compliant without tr46, so you’ll have to come to some kind of trade-off here.

0reactions
hollowdoorcommented, Jun 24, 2017

It’s not clear what your use cases are (or what the use cases of users using your isomorphic-url package are), so it’s not clear whether whatwg-url is even right for them.

I would use it in an isomorphic router to get a url pathname, and query from a string to match against. I found this issue because I was looking for a solution to that actually.

Right now a check for window && (URL || createFromLInk) || module && module.exports && (require('url')).URL || myCustomURLConstructor is how I’m doing it. Which at least works for the time being.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browserify
Browserify lets you require('modules') in the browser by bundling up all of your dependencies. Install Documentation · Source Code · Help + Articles...
Read more >
browserify/browserify: browser-side require() the node.js way
Use a node-style require() to organize your browser code and load modules installed by npm. browserify will recursively analyze all the require() calls...
Read more >
Browserify
Start using browserify in your project by running `npm i browserify`. There are 3187 other projects in the npm registry using browserify.
Read more >
Lesson 3. Bundling modules with Browserify
Many programming languages support modularized code. Ruby calls these pieces of modularized code gems, Python calls them eggs, and Java calls them packages....
Read more >
Publishing your first Browserify/Node module
In this article we will go with Browserify. To install Browserify open a terminal and type: npm install -g browserify. Hello Browserify. To...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found