import method
Define the actual import code. path is passed relative to lib, baseName is the filename, and className is the filename converted to Pascal case.
実際のインポートコードを定義します。pathにlibからの相対パス、baseNameにファイル名が渡され、classNameにファイル名をパスカルケースに変換した値が渡されます。
Implementation
@override
String import(String path, String baseName, String className) {
return """
import * as m from "@mathrunet/masamune_cloudflare";
import rules from "./rules.json";
${firebaseProjectId != null ? 'import type { MiddlewareHandler } from "hono";' : ''}
""";
}