gitea/web_src/js/jquery.js
silverwind 2982afe6b4 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.
2020-01-21 19:32:33 +02:00

5 lines
102 B
JavaScript

import $ from 'jquery';
import 'jquery-migrate';
$.migrateMute = true;
window.$ = window.jQuery = $;