summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-09-06 02:02:44 +0200
committerGitHub <noreply@github.com>2023-09-06 00:02:44 +0000
commit97aa749578a05b207d54dbbcd8580201b5eba359 (patch)
tree1e575d28f8c6d544fdcddb51f920d6cb68a29cc6 /webpack.config.js
parent01e71e2a478be393dabf14e69520b0f8892baf59 (diff)
downloadgitea-97aa749578a05b207d54dbbcd8580201b5eba359.tar.gz
gitea-97aa749578a05b207d54dbbcd8580201b5eba359.zip
Vendor `jquery.are-you-sure` with strict mode fixes (#26901)
Extract from https://github.com/go-gitea/gitea/pull/25940 and because https://github.com/go-gitea/gitea/pull/26743 does seem to need more work. This will be required if we are to run our JS in [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode). Previously, the two variables `$fields` and `$dirtyForms` polluted `window`: <img width="1145" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/e0270a0e-b881-4ed7-9cc4-e9ab25c0a2bc">
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index c6b28068f0..f95296c380 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -206,7 +206,6 @@ export default {
}).join('\n');
},
override: {
- 'jquery.are-you-sure@*': {licenseName: 'MIT'}, // https://github.com/codedance/jquery.AreYouSure/pull/147
'khroma@*': {licenseName: 'MIT'}, // https://github.com/fabiospampinato/khroma/pull/33
},
emitError: true,