File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,24 @@ export function createAppPage(derby): typeof Page {
3939
4040export interface AppOptions {
4141 appMetadata ?: Record < string , string > ,
42+ /**
43+ * Base URL that the JS bundles are served from, with no trailing slash.
44+ * Used by bundler plugins such as derby-webpack and derby-browserify.
45+ */
4246 scriptBaseUrl ?: string ,
47+ /**
48+ * If true, then Derby's <script> tags have the `crossorigin` attribute set by the bundler plugin.
49+ */
4350 scriptCrossOrigin ?: boolean ,
51+ /**
52+ * If set, this is used for auto-refresh in development to determine whether the browser
53+ * should auto-refresh due to running different code than the server. Some bundler plugins,
54+ * such as derby-webpack, do their own hot reload and don't use this mechanism.
55+ */
4456 scriptHash ?: string ;
57+ /**
58+ * Base URL for js.map files, if different from scriptBaseUrl.
59+ */
4560 scriptMapBaseUrl ?: string ,
4661 [ key : string ] : unknown ,
4762}
You can’t perform that action at this time.
0 commit comments