diff options
author | Mike Greiling <mgreiling@gitlab.com> | 2017-05-09 13:43:08 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-05-09 13:43:08 +0000 |
commit | b095c407839913183205d516191b3b8b4a7feb92 (patch) | |
tree | c9377117cb38164f0d011997926f5125b82b393a /app/assets/javascripts/sidebar | |
parent | 503e8a9f296d5aec30b3667b79e989e63b72b304 (diff) | |
download | gitlab-ce-b095c407839913183205d516191b3b8b4a7feb92.tar.gz |
Prevent vue.esm.js from being bundled into the primary JS bundle
Diffstat (limited to 'app/assets/javascripts/sidebar')
-rw-r--r-- | app/assets/javascripts/sidebar/event_hub.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar/event_hub.js b/app/assets/javascripts/sidebar/event_hub.js index 0948c2e5352..f35506fd5de 100644 --- a/app/assets/javascripts/sidebar/event_hub.js +++ b/app/assets/javascripts/sidebar/event_hub.js @@ -1,3 +1,8 @@ import Vue from 'vue'; -export default new Vue(); +const eventHub = new Vue(); + +// TODO: remove eventHub hack after code splitting refactor +window.emitSidebarEvent = (...args) => eventHub.$emit(...args); + +export default eventHub; |