Skip to content

Fix for avoid build issue for browser #78

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

Closed
wants to merge 1 commit into from

Conversation

JLavoieMTL
Copy link

verify if the code is to build for nodeJs or for the browser. If the library is built and minified for the browser, the NodeJS code in index.js will not be added because module.exports cannot interpreted by the browser.

verify if the code is to build for nodeJs or for the browser. If the library is built and minified for the browser, the NodeJS code in index.js will not be added because module.exports cannot interpreted by the browser.
@JLavoieMTL
Copy link
Author

Please add this commit to the main branch.

@blueimp
Copy link
Owner

blueimp commented Apr 22, 2016

Could you provide an example where this change makes sense?
index.js was added specifically for a Webpack compatibility pull request: #75
It is only meant to be used by a NodeJS compatible environment and not needed otherwise.

@blueimp
Copy link
Owner

blueimp commented May 9, 2016

Closing as there was no reply.

@blueimp blueimp closed this May 9, 2016
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