Explicitly call gitlab-ui config function

This avoids an issue where the config function is not
called in the production bundle
parent 488e0370
...@@ -19,6 +19,7 @@ import { getLocationHash, visitUrl } from './lib/utils/url_utility'; ...@@ -19,6 +19,7 @@ import { getLocationHash, visitUrl } from './lib/utils/url_utility';
// everything else // everything else
import loadAwardsHandler from './awards_handler'; import loadAwardsHandler from './awards_handler';
import applyGitLabUIConfig from '@gitlab/ui/dist/config';
import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils'; import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import Flash, { removeFlashClickListener } from './flash'; import Flash, { removeFlashClickListener } from './flash';
import './gl_dropdown'; import './gl_dropdown';
...@@ -42,6 +43,8 @@ import { __ } from './locale'; ...@@ -42,6 +43,8 @@ import { __ } from './locale';
import 'ee_else_ce/main_ee'; import 'ee_else_ce/main_ee';
applyGitLabUIConfig();
// expose jQuery as global (TODO: remove these) // expose jQuery as global (TODO: remove these)
window.jQuery = jQuery; window.jQuery = jQuery;
window.$ = jQuery; window.$ = jQuery;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment