Skip to content
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

change how environment is detected #5

Closed
assisrafael opened this issue Mar 15, 2015 · 1 comment
Closed

change how environment is detected #5

assisrafael opened this issue Mar 15, 2015 · 1 comment
Labels

Comments

@assisrafael
Copy link
Collaborator

npm recomends the following snippet to detect the node environment:

if (typeof module === "object" && typeof module.exports === "object") {
  // create the plugin with a CommonJS version
} else {
  // create the plugin with the global object
}
@the-darc the-darc added the bug label Mar 15, 2015
@assisrafael
Copy link
Collaborator Author

Fixed in 4ad6db0

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

No branches or pull requests

2 participants