-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brought changes lib/core/src/client/preview in #9870 over
Thanks @kroeder!
- Loading branch information
Showing
8 changed files
with
85 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export interface PreviewError { | ||
message?: string; | ||
stack?: string; | ||
} | ||
|
||
// Copy of require.context | ||
// interface RequireContext { | ||
// keys(): string[]; | ||
// (id: string): any; | ||
// <T>(id: string): T; | ||
// resolve(id: string): string; | ||
// /** The module id of the context module. This may be useful for module.hot.accept. */ | ||
// id: string; | ||
// } | ||
|
||
export type RequireContext = { | ||
keys: () => string[]; | ||
(id: string): any; | ||
resolve(id: string): string; | ||
}; | ||
export type LoaderFunction = () => void | any[]; | ||
export type Loadable = RequireContext | RequireContext[] | LoaderFunction; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters