Skip to content

Remove Emulator? #15672

@benmccann

Description

@benmccann

Is it still used? I think it used to be used by Cloudflare, but I don't see where it's used and it's not documented.

We currently publicly export:

/**
 * A collection of functions that influence the environment during dev, build and prerendering
 */
export interface Emulator {
	/**
	 * A function that is called with the current route `config` and `prerender` option
	 * and returns an `App.Platform` object
	 */
	platform?(details: { config: any; prerender: PrerenderOption }): MaybePromise<App.Platform>;
}

If we keep it, I don't understand what config is supposed to be and so that should be cleaned up. I only see it called with config: {} and the public type shows config: any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions