🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.

Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.

guide

Concepts

Bundling

By default each file in Routify is dynamically imported. In most cases this improves load time as less data is required for the first page render.

However, in some cases it may be beneficial to bundle the contents of a folder or even the entire app. To do this we can use the bundle meta option.

<!-- routify:meta bundle -->

Using the bundle option in a folder (_module.svelte), will bundle all its files and folders recursively into a single .js file. We can even bundle a folder inside a bundled folder. This will create two smaller bundles.