Created
June 20, 2021 08:23
-
-
Save EmmanuelObua/c73ff3b45c059e4e021c16288caf33a2 to your computer and use it in GitHub Desktop.
Export constants for npm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add this at the end of jQueryClone.js file to export the $ function | |
* Check if we are using modules and export the $ function else attach it to the window object | |
*/ | |
if (typeof exports != "undefined") { | |
exports.$ = $; | |
} else { | |
window.$ = $ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment