frontend: declare the empty toplevel export the codegen reads

routes.gen.js spreads `.toplevel` for every plugin uniformly, but only a
few own full-screen routes, so Rollup warned on eleven of them every
build. The `|| []` guard was always doing its job - the warning was noise,
and noise in a build log is where a real warning goes to hide.
This commit is contained in:
cproudlock
2026-08-12 11:43:57 -04:00
parent f66763e6df
commit 27f76ee964
11 changed files with 55 additions and 0 deletions

View File

@@ -19,3 +19,8 @@ export default [
meta: { requiresAuth: true, plugin: 'backups' }
}
]
// No full-screen routes: every view in this plugin renders inside
// AppLayout. Declared so routes.gen.js can read `.toplevel` off the module
// without Rollup warning about a missing export.
export const toplevel = []