Skip to content

Commit a9fa133

Browse files
committed
🐛 fix: fix import error
1 parent eaf26bd commit a9fa133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/searchEngine/runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import querystring from 'query-string';
2-
31
import { PluginRunner } from '../../types/pluginItem';
42
import { OrganicResults, Result } from './type';
53

@@ -18,6 +16,8 @@ const fetchResult: PluginRunner<{ keywords: string }, Result> = async ({ keyword
1816
q: keywords,
1917
};
2018

19+
const { default: querystring } = await import('query-string');
20+
2121
const query = querystring.stringify(params);
2222

2323
const res = await fetch(`${BASE_URL}?${query}`);

0 commit comments

Comments
 (0)