@farming-labs/theme 0.0.55 → 0.0.56

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.
@@ -1,11 +1,10 @@
1
- import { __require } from "./_virtual/_rolldown/runtime.mjs";
2
-
3
1
  //#region src/serialize-icon.ts
4
2
  function serializeIcon(icon) {
5
3
  if (!icon) return void 0;
6
4
  if (typeof icon === "string") return icon;
7
5
  try {
8
- const { renderToStaticMarkup } = __require("react-dom/server");
6
+ const runtimeRequire = eval("require");
7
+ const { renderToStaticMarkup } = runtimeRequire("react-dom/server");
9
8
  return renderToStaticMarkup(icon);
10
9
  } catch {
11
10
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -115,7 +115,7 @@
115
115
  "tsdown": "^0.20.3",
116
116
  "typescript": "^5.9.3",
117
117
  "vitest": "^3.2.4",
118
- "@farming-labs/docs": "0.0.55"
118
+ "@farming-labs/docs": "0.0.56"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@farming-labs/docs": ">=0.0.1",
@@ -1,7 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region \0rolldown/runtime.js
4
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
5
-
6
- //#endregion
7
- export { __require };