@@ -27,20 +27,19 @@ import {
2727 getItemActions ,
2828 uiSearchItem ,
2929} from "./ext.ts" ;
30- import { isDenoCacheIssueError } from "./utils.ts" ;
30+ import { importPlugin , isDenoCacheIssueError } from "./utils.ts" ;
3131import { type BaseUi , defaultUiOptions } from "./base/ui.ts" ;
3232import { type BaseSource , defaultSourceOptions } from "./base/source.ts" ;
3333import { type BaseFilter , defaultFilterOptions } from "./base/filter.ts" ;
3434import { type BaseKind , defaultKindOptions } from "./base/kind.ts" ;
3535import { type BaseColumn , defaultColumnOptions } from "./base/column.ts" ;
3636import { defaultActionOptions } from "./base/action.ts" ;
3737
38- import type { Denops , Entrypoint } from "jsr: @denops/std@~7.6.0 " ;
38+ import type { Denops , Entrypoint } from "@denops/std" ;
3939
40- import { toFileUrl } from "jsr:@std/path@~1.1.0/to-file-url" ;
41- import { Lock } from "jsr:@core/asyncutil@~1.2.0/lock" ;
42- import { is } from "jsr:@core/unknownutil@~4.3.0/is" ;
43- import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure" ;
40+ import { Lock } from "@core/asyncutil/lock" ;
41+ import { is } from "@core/unknownutil/is" ;
42+ import { ensure } from "@core/unknownutil/ensure" ;
4443
4544export const main : Entrypoint = ( denops : Denops ) => {
4645 type RedrawTreeMode = "collapse" | "expand" ;
@@ -280,12 +279,9 @@ export const main: Entrypoint = (denops: Denops) => {
280279 const path = ensure ( arg1 , is . String ) as string ;
281280
282281 try {
283- // NOTE: Import module with fragment so that reload works properly.
284- // https://github.com/vim-denops/denops.vim/issues/227
285- const mod = await import (
286- `${ toFileUrl ( path ) . href } #${ performance . now ( ) } `
287- ) ;
288- const obj = new mod . Config ( ) ;
282+ const mod = await importPlugin ( path ) ;
283+ // deno-lint-ignore no-explicit-any
284+ const obj = new ( mod as any ) . Config ( ) ;
289285 await obj . config ( { denops, contextBuilder, setAlias } ) ;
290286 } catch ( e ) {
291287 if ( isDenoCacheIssueError ( e ) ) {
0 commit comments