We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f041ac3 commit ed442a3Copy full SHA for ed442a3
.changeset/common-apples-work.md
@@ -0,0 +1,5 @@
1
+---
2
+'sv-router': patch
3
4
+
5
+Fix vite plugin config change during development
src/vite-plugin/plugin.js
@@ -7,9 +7,9 @@ import { writeRouterCode } from '../gen/write-router-code.js';
7
* @returns {import('vite').Plugin}
8
*/
9
export function router(options) {
10
- if (options?.allLazy) genConfig.allLazy = options.allLazy;
11
- if (options?.js) genConfig.routesInJs = options.js;
12
- if (options?.path) genConfig.routesPath = options.path;
+ genConfig.allLazy = options?.allLazy || false;
+ genConfig.routesInJs = options?.js || false;
+ genConfig.routesPath = options?.path || 'src/routes';
13
14
return {
15
name: 'sv-router',
0 commit comments