routerino 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "routerino",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A lightweight, SEO-optimized React router for modern web applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,6 @@ export function routerinoForge(options = {}) {
27
27
  useTrailingSlash: options.useTrailingSlash ?? true, // Default to trailing slashes
28
28
  ssgCacheDir:
29
29
  options.ssgCacheDir || "node_modules/.cache/routerino-forge/ssg",
30
- nonBlockingCss: options.nonBlockingCss ?? true,
31
30
  };
32
31
 
33
32
  // Normalize baseUrl: strip trailing slashes to ensure correct canonical composition
@@ -54,15 +53,6 @@ export function routerinoForge(options = {}) {
54
53
  viteConfig = resolvedConfig;
55
54
  },
56
55
 
57
- transformIndexHtml(html) {
58
- if (!config.nonBlockingCss) return html;
59
- return html.replace(
60
- /<link rel="stylesheet"[^>]*href="(\/[^"]+\.css)"[^>]*\/?>/g,
61
- (_, href) =>
62
- `<link rel="preload" as="style" href="${href}">\n <link rel="stylesheet" href="${href}" media="print" onload="this.media='all'">\n <noscript><link rel="stylesheet" href="${href}"></noscript>`
63
- );
64
- },
65
-
66
56
  async closeBundle() {
67
57
  // Only run during build, not during dev server
68
58
  if (viteConfig.command !== "build") return;
@@ -41,13 +41,6 @@ export interface HeadTag {
41
41
  * @default "node_modules/.cache/routerino-forge/ssg"
42
42
  */
43
43
  ssgCacheDir?: string;
44
- /**
45
- * Transform CSS `<link>` tags to load asynchronously (non-blocking).
46
- * Converts stylesheets to use `media="print"` with `onload` swap,
47
- * `<link rel="preload">` hint, and `<noscript>` fallback.
48
- * @default true
49
- */
50
- nonBlockingCss?: boolean;
51
44
  }
52
45
 
53
46
  export interface HeadTag {