@farming-labs/theme 0.2.108 → 0.2.109

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.
@@ -5,12 +5,11 @@ import { createRequire } from "node:module";
5
5
  * Server-only helper to convert a ReactNode icon into an HTML string
6
6
  * so it can be safely serialized across the server→client boundary.
7
7
  */
8
- const require = createRequire(import.meta.url);
9
8
  function serializeIcon(icon) {
10
9
  if (!icon) return void 0;
11
10
  if (typeof icon === "string") return icon;
12
11
  try {
13
- const { renderToStaticMarkup } = require("react-dom/server");
12
+ const { renderToStaticMarkup } = createRequire(import.meta.url)("react-dom/server");
14
13
  return renderToStaticMarkup(icon);
15
14
  } catch {
16
15
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.2.108",
3
+ "version": "0.2.109",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -161,7 +161,7 @@
161
161
  "tsdown": "^0.20.3",
162
162
  "typescript": "^5.9.3",
163
163
  "vitest": "^4.1.8",
164
- "@farming-labs/docs": "0.2.108"
164
+ "@farming-labs/docs": "0.2.109"
165
165
  },
166
166
  "peerDependencies": {
167
167
  "@farming-labs/docs": ">=0.0.1",