Skip to content

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