mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #18943 from overleaf/ae-jquery-revert
Revert "Upgrade jQuery to v3 (#18796)" GitOrigin-RevId: fa7815b7bfe28239c86900b62bdcd3c4dac3a65f
This commit is contained in:
@@ -255,6 +255,18 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
// Expose jQuery and $ global variables
|
||||
test: require.resolve('jquery'),
|
||||
use: [
|
||||
{
|
||||
loader: 'expose-loader',
|
||||
options: {
|
||||
exposes: ['$', 'jQuery'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
@@ -297,12 +309,6 @@ module.exports = {
|
||||
contextRegExp: /moment$/,
|
||||
}),
|
||||
|
||||
// Set window.$ and window.jQuery
|
||||
new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
}),
|
||||
|
||||
// Copy the required files for loading MathJax from MathJax NPM package
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
|
||||
Reference in New Issue
Block a user