Skip to content

Commit 0d4af52

Browse files
committed
Build: Fix unresolved jQuery reference in finalPropName
Also, prevent further similar breakages by changing our ESLint configuration to disallow relying on a global jQuery object in AMD modules. (cherry-picked from 8740305) Fixes gh-4358 Closes gh-4361
1 parent 22caea8 commit 0d4af52

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

‎src/.eslintrc.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44
"extends": "../.eslintrc-browser.json",
55

6-
"globals": {
7-
"jQuery": true
8-
}
6+
"overrides": [
7+
{
8+
"files": "wrapper.js",
9+
"globals": {
10+
"jQuery": false
11+
}
12+
}
13+
]
914
}

‎src/css/finalPropName.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
define( [ "../var/document" ], function( document ) {
1+
define( [
2+
"../var/document",
3+
"../core"
4+
], function( document, jQuery ) {
25

36
"use strict";
47

0 commit comments

Comments
 (0)
X