Use import instead of require
This commit is contained in:
parent
ead94db602
commit
7598cf62b8
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
require('~/copy_as_gfm');
|
||||
import '~/copy_as_gfm';
|
||||
|
||||
(() => {
|
||||
describe('gl.CopyAsGFM', () => {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue