Skip to content

Require statements break Browserify compatibility - #875

Merged
brianc merged 1 commit into
brianc:masterfrom
joostfarla:require
Oct 15, 2015
Merged

brianc merged 1 commit into
brianc:masterfrom
joostfarla:require

Conversation

@joostfarla

Copy link
Copy Markdown
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

brianc commented Oct 15, 2015

Copy link
Copy Markdown
Owner

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
Copy Markdown
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