@absolutejs/absolute 0.19.0-beta.208 → 0.19.0-beta.209

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
@@ -70,6 +70,7 @@
70
70
  "types": "./dist/src/react/index.d.ts"
71
71
  },
72
72
  "./react/components": {
73
+ "browser": "./dist/react/components/browser/index.js",
73
74
  "import": "./dist/react/components/index.js",
74
75
  "types": "./dist/src/react/components/index.d.ts"
75
76
  },
@@ -216,5 +217,5 @@
216
217
  "typecheck": "bun run vue-tsc --noEmit"
217
218
  },
218
219
  "types": "./dist/src/index.d.ts",
219
- "version": "0.19.0-beta.208"
220
+ "version": "0.19.0-beta.209"
220
221
  }
package/scripts/build.ts CHANGED
@@ -76,6 +76,21 @@ async function build() {
76
76
  process.exit(1);
77
77
  }
78
78
 
79
+ console.log("Building React components (browser target)...");
80
+ const reactBrowserBuild = await Bun.build({
81
+ entrypoints: ["src/react/components/index.ts"],
82
+ outdir: join(DIST, "react", "components", "browser"),
83
+ target: "browser",
84
+ root: "src/react/components",
85
+ external: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime"],
86
+ });
87
+
88
+ if (!reactBrowserBuild.success) {
89
+ console.error("React browser build failed:");
90
+ for (const log of reactBrowserBuild.logs) console.error(log);
91
+ process.exit(1);
92
+ }
93
+
79
94
  console.log("Building CLI...");
80
95
  const cliBuild = await Bun.build({
81
96
  entrypoints: ["src/cli/index.ts"],