calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 480 forks source link

Tooltipster wrongly believes being in CommonJS when a global exports variable is defined #743

Closed cedricvidal closed 5 years ago

cedricvidal commented 6 years ago

When loading tooltipster in a page where a variables named exports happens to already be defined then the boot code wrongly believes being in a CommonJS module, yielding the following exception :

tooltipster.bundle.js:17 Uncaught ReferenceError: module is not defined
    at tooltipster.bundle.js:17
    at tooltipster.bundle.js:21

Tooltipster version 4.2.6

cedricvidal commented 6 years ago

The solution was simply to upgrade grunt-umd to latest version (3.0.0). I've proposed PR #744