INNER CODE UNIT · TypeScript

AbstractBundlerAdapter

midwayjs/hooks · packages/bundler/src/index.ts:23

export abstract class AbstractBundlerAdapter {
  constructor(private config: BundlerConfig) {}

  getName() {
    return this.config.name
  }

  abstract getSource(): string

  getRouter() {
    return this.config.router
  }

  getUnplugin(): Partial<UnpluginOptions> {
    return {}
  }

  transformApiRoutes(apis: ApiRoute[]) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…