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 874030583c)

Fixes gh-4358
Closes gh-4361
This commit is contained in:
Michał Gołębiowski-Owczarek 2019-04-17 19:56:25 +02:00
parent 22caea8149
commit 0d4af52934
2 changed files with 12 additions and 4 deletions

View File

@ -3,7 +3,12 @@
"extends": "../.eslintrc-browser.json",
"globals": {
"jQuery": true
}
"overrides": [
{
"files": "wrapper.js",
"globals": {
"jQuery": false
}
}
]
}

View File

@ -1,4 +1,7 @@
define( [ "../var/document" ], function( document ) {
define( [
"../var/document",
"../core"
], function( document, jQuery ) {
"use strict";