We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01873a9 commit 1d9ae7aCopy full SHA for 1d9ae7a
web_src/js/index-domready.ts
@@ -1,4 +1,3 @@
1
-import './globals.ts';
2
import '../fomantic/build/fomantic.js';
3
import '../../node_modules/easymde/dist/easymde.min.css'; // TODO: lazy load in "switchToEasyMDE"
4
web_src/js/index.ts
@@ -1,5 +1,10 @@
// bootstrap module must be the first one to be imported, it handles webpack lazy-loading and global errors
import './bootstrap.ts';
+
+// many users expect to use jQuery in their custom scripts (https://docs.gitea.com/administration/customizing-gitea#example-plantuml)
5
+// so load globals (including jQuery) as early as possible
6
+import './globals.ts';
7
8
import './webcomponents/index.ts';
9
import {onDomReady} from './utils/dom.ts';
10
0 commit comments