From 2982afe6b498f9d61bd48407c5408299a1cbbc60 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 21 Jan 2020 18:32:33 +0100 Subject: move jquery and jquery-migrate to npm/webpack (#9813) Currently, this needs to be its own chunk because fomantic depends on jQuery being present. The next step is to move fomantic to webpack too after which we can combine the index,fomantic and jquery files into one. jquery-migrate is still neccessary because our ancient version of Dropzone seems to break without it. I imagine it can be removed after a Dropzone upgrade. --- web_src/js/jquery.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 web_src/js/jquery.js (limited to 'web_src') diff --git a/web_src/js/jquery.js b/web_src/js/jquery.js new file mode 100644 index 0000000000..f2932dbfa4 --- /dev/null +++ b/web_src/js/jquery.js @@ -0,0 +1,5 @@ +import $ from 'jquery'; +import 'jquery-migrate'; + +$.migrateMute = true; +window.$ = window.jQuery = $; -- cgit v1.2.3