@sigil-dev/grimoire 0.8.2 → 0.8.4

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
@@ -3,7 +3,7 @@
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
5
  "private": false,
6
- "version": "0.8.2",
6
+ "version": "0.8.4",
7
7
  "exports": {
8
8
  ".": "./index.ts",
9
9
  "./server": "./server.ts",
@@ -33,13 +33,13 @@
33
33
  "vite": "^8.0.16"
34
34
  },
35
35
  "peerDependencies": {
36
- "@sigil-dev/compiler": "0.8.2",
37
- "@sigil-dev/runtime": "0.8.2",
36
+ "@sigil-dev/compiler": "0.8.4",
37
+ "@sigil-dev/runtime": "0.8.4",
38
38
  "typescript": "^5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/bun": "latest",
42
- "@sigil-dev/compiler": "0.8.2",
43
- "@sigil-dev/runtime": "0.8.2"
42
+ "@sigil-dev/compiler": "0.8.4",
43
+ "@sigil-dev/runtime": "0.8.4"
44
44
  }
45
45
  }
@@ -148,7 +148,6 @@ export async function compileForBrowser(
148
148
 
149
149
  // inject scoped CSS at runtime
150
150
  if (css) {
151
- //biome-ignore lint: bro shut up already
152
151
  js = `if (typeof document !== 'undefined' && !document.getElementById('sigil-${hash}')) {
153
152
  const __s = document.createElement('style');
154
153
  __s.id = 'sigil-${hash}';
@@ -76,7 +76,8 @@ export async function transformRoutes(
76
76
  plugins: ["typescript", "jsx"], // no isTSX
77
77
  },
78
78
  plugins: [
79
- [sigilPlugin, { hash, mode }],
79
+ [sigilPlugin, { hash, mode }],
80
+ //@ts-expect-error it fills what it needs
80
81
  rewriteRelativeImports(route.filePath),
81
82
  ],
82
83
  filename: route.filePath,