diff --git a/plugins/searchEngine/runner.ts b/plugins/searchEngine/runner.ts index fce1de6..4227983 100644 --- a/plugins/searchEngine/runner.ts +++ b/plugins/searchEngine/runner.ts @@ -1,5 +1,3 @@ -import querystring from 'query-string'; - import { PluginRunner } from '../../types/pluginItem'; import { OrganicResults, Result } from './type'; @@ -18,6 +16,8 @@ const fetchResult: PluginRunner<{ keywords: string }, Result> = async ({ keyword q: keywords, }; + const { default: querystring } = await import('query-string'); + const query = querystring.stringify(params); const res = await fetch(`${BASE_URL}?${query}`);