Commit 643ff19e authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch 'remove-require-context-cycle-analytics-bundle' into 'master'

Remove require.context from cycle_analytics_bundle

See merge request !9393
parents 33e4294f 41e36f2c
...@@ -4,10 +4,20 @@ ...@@ -4,10 +4,20 @@
window.Vue = require('vue'); window.Vue = require('vue');
window.Cookies = require('js-cookie'); window.Cookies = require('js-cookie');
require('./svg/icon_branch');
function requireAll(context) { return context.keys().map(context); } require('./svg/icon_build_status');
requireAll(require.context('./svg', false, /^\.\/.*\.(js|es6)$/)); require('./svg/icon_commit');
requireAll(require.context('.', true, /^\.\/(?!cycle_analytics_bundle).*\.(js|es6)$/)); require('./components/stage_code_component');
require('./components/stage_issue_component');
require('./components/stage_plan_component');
require('./components/stage_production_component');
require('./components/stage_review_component');
require('./components/stage_staging_component');
require('./components/stage_test_component');
require('./components/total_time_component');
require('./cycle_analytics_service');
require('./cycle_analytics_store');
require('./default_event_objects');
$(() => { $(() => {
const OVERVIEW_DIALOG_COOKIE = 'cycle_analytics_help_dismissed'; const OVERVIEW_DIALOG_COOKIE = 'cycle_analytics_help_dismissed';
......
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