diff --git a/denops/skkeleton/sources/skk_server.ts b/denops/skkeleton/sources/skk_server.ts index f5cff6f..4c96986 100644 --- a/denops/skkeleton/sources/skk_server.ts +++ b/denops/skkeleton/sources/skk_server.ts @@ -7,7 +7,9 @@ import { import { getKanaTable } from "../kana.ts"; import { Encode } from "../types.ts"; import type { CompletionData, Encoding, SkkServerOptions } from "../types.ts"; -import * as encoding from "npm:encoding-japanese@2.2.0"; + +// NOTE: import * as encoding does not work! +import encoding from "npm:encoding-japanese@2.2.0"; import { TextLineStream } from "jsr:@std/streams@~1.0.3/text-line-stream"; diff --git a/denops/skkeleton/util.ts b/denops/skkeleton/util.ts index eb8511b..a3ef64b 100644 --- a/denops/skkeleton/util.ts +++ b/denops/skkeleton/util.ts @@ -1,4 +1,6 @@ import { Denops, fn, op } from "./deps.ts"; + +// NOTE: import * as encoding does not work! import encoding from "npm:encoding-japanese@2.2.0"; import { basename } from "jsr:@std/path@~1.0.3/basename";