1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 21:39:08 +02:00

Change Rollup config to wrap our dist files with jQuery instead of $

This commit is contained in:
Johann-S
2017-10-24 10:12:45 +02:00
parent ca4ad8bee8
commit 62fbb23ee6
15 changed files with 24 additions and 50 deletions

View File

@@ -18,7 +18,7 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
(() => {
(($) => {
if (typeof $ === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
}
@@ -33,7 +33,7 @@ import Util from './util'
if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0')
}
})(Util.jQuery)
})($)
export {
Util,