We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var introJs = require('intro.js'); console.log(introJs);
output:
Object { introJs: function(targetElm) }
This has little sense. Why doesn't require('intro.js') directly export the introJs function instead?
require('intro.js')
introJs
So, instead of exports.introJs = introJs; this would be much better to check for window.module and export module.exports = introJs.
exports.introJs = introJs;
window.module
module.exports = introJs
The text was updated successfully, but these errors were encountered:
Oh wow I was trying to figure this out for an hour now... +1
Sorry, something went wrong.
No branches or pull requests
output:
This has little sense. Why doesn't
require('intro.js')
directly export theintroJs
function instead?So, instead of
exports.introJs = introJs;
this would be much better to check forwindow.module
and exportmodule.exports = introJs
.The text was updated successfully, but these errors were encountered: