Closed ibc closed 6 years ago
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
Oh wow I was trying to figure this out for an hour now... +1
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
.