update cycle_analytics_bundle to ES module syntax
This commit is contained in:
parent
a8b5878bfe
commit
4322d3c2e3
2 changed files with 14 additions and 15 deletions
|
@ -4,18 +4,17 @@ import Vue from 'vue';
|
|||
import Cookies from 'js-cookie';
|
||||
import Translate from '../vue_shared/translate';
|
||||
import LimitWarningComponent from './components/limit_warning_component';
|
||||
|
||||
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');
|
||||
import './components/stage_code_component';
|
||||
import './components/stage_issue_component';
|
||||
import './components/stage_plan_component';
|
||||
import './components/stage_production_component';
|
||||
import './components/stage_review_component';
|
||||
import './components/stage_staging_component';
|
||||
import './components/stage_test_component';
|
||||
import './components/total_time_component';
|
||||
import './cycle_analytics_service';
|
||||
import './cycle_analytics_store';
|
||||
import './default_event_objects';
|
||||
|
||||
Vue.use(Translate);
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* eslint-disable no-param-reassign */
|
||||
import { __ } from '../locale';
|
||||
|
||||
require('../lib/utils/text_utility');
|
||||
const DEFAULT_EVENT_OBJECTS = require('./default_event_objects');
|
||||
import { __ } from '../locale';
|
||||
import '../lib/utils/text_utility';
|
||||
import DEFAULT_EVENT_OBJECTS from './default_event_objects';
|
||||
|
||||
const global = window.gl || (window.gl = {});
|
||||
global.cycleAnalytics = global.cycleAnalytics || {};
|
||||
|
|
Loading…
Reference in a new issue