Fix build lags
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import type { Plugin } from "esbuild";
|
||||
import type { PageFiles } from "../../../types";
|
||||
type Params = {
|
||||
entryToPage: Map<string, PageFiles & {
|
||||
tsx: string;
|
||||
}>;
|
||||
type SSRVirtualEntry = PageFiles & {
|
||||
tsx: string;
|
||||
};
|
||||
export default function ssrVirtualFilesPlugin({ entryToPage }: Params): Plugin;
|
||||
type Params = {
|
||||
/**
|
||||
* Lazily-resolved current virtual entry contents. The map is refreshed
|
||||
* before every rebuild so edits to `.server.ts`/api files (whose virtual
|
||||
* entries mirror their raw file content) are picked up by a plain
|
||||
* `ctx.rebuild()` without recreating the esbuild context.
|
||||
*/
|
||||
getEntryToPage: () => Map<string, SSRVirtualEntry>;
|
||||
};
|
||||
export default function ssrVirtualFilesPlugin({ getEntryToPage }: Params): Plugin;
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user