Use import instead of require

This commit is contained in:
Clement Ho 2017-05-24 09:19:08 -05:00
parent ead94db602
commit 7598cf62b8
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
require('~/copy_as_gfm');
import '~/copy_as_gfm';
(() => {
describe('gl.CopyAsGFM', () => {

View file

@ -2,7 +2,7 @@ import Vue from 'vue';
import eventHub from '~/filtered_search/event_hub';
import RecentSearchesDropdownContent from '~/filtered_search/components/recent_searches_dropdown_content';
require('~/filtered_search/filtered_search_token_keys');
import '~/filtered_search/filtered_search_token_keys';
const createComponent = (propsData) => {
const Component = Vue.extend(RecentSearchesDropdownContent);