Skip to content

Require statements break Browserify compatibility #875

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

Merged
merged 1 commit into from
Oct 15, 2015
Merged

Require statements break Browserify compatibility #875

merged 1 commit into from
Oct 15, 2015

Conversation

joostfarla
Copy link
Contributor

Using __dirname in require statements breaks compatibility with Browserify.

I've also submitted a related PR for pg-types (brianc/node-pg-types#43).

@brianc
Copy link
Owner

brianc commented Oct 15, 2015

Thanks for this! Why are you trying to browserify this library, by the way?

brianc added a commit that referenced this pull request Oct 15, 2015
Require statements break Browserify compatibility
@brianc brianc merged commit 6d18fe5 into brianc:master Oct 15, 2015
@joostfarla
Copy link
Contributor Author

@brianc we were trying to get the module up & running in AWS Lambda, using the JAWS framework. JAWS uses Browserify to bundle & compress the JS files. (see serverless/serverless#201)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants