This package allows you to specify .route.tsx
files anywhere in your /app
directory and they will be recognized as routes
Filenames follow the v2 flat routes convention
root.tsx
app
_layout.route.tsx
patch package.json < package.json.patch |
export type PerformanceServerTimings = Record< | |
string, | |
Array<PerformanceServerTiming> | |
> | |
/** | |
* Run this on the server to get a `time` function that can be used to time | |
* server-side operations and add them to the `Server-Timing` header. | |
*/ | |
export function getServerTiming() { |
diff --git a/node_modules/@remix-run/dev/dist/compiler/assets.js b/node_modules/@remix-run/dev/dist/compiler/assets.js | |
index b01942f..8f90ae1 100644 | |
--- a/node_modules/@remix-run/dev/dist/compiler/assets.js | |
+++ b/node_modules/@remix-run/dev/dist/compiler/assets.js | |
@@ -95,6 +95,7 @@ async function createAssetsManifest({ | |
routes, | |
hmrRoutes: hmr === null || hmr === void 0 ? void 0 : hmr.routes | |
})).slice(0, 8); | |
+ | |
return { |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |