@omniviewdev/vite-plugin 0.1.6 → 0.1.8

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/dist/index.cjs CHANGED
@@ -79,6 +79,7 @@ var SHARED_PACKAGES = [
79
79
  "react",
80
80
  "react/jsx-runtime",
81
81
  "react/jsx-dev-runtime",
82
+ "react/compiler-runtime",
82
83
  "react-router-dom",
83
84
  "react-dom",
84
85
  "react-icons",
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ var SHARED_PACKAGES = [
42
42
  "react",
43
43
  "react/jsx-runtime",
44
44
  "react/jsx-dev-runtime",
45
+ "react/compiler-runtime",
45
46
  "react-router-dom",
46
47
  "react-dom",
47
48
  "react-icons",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniviewdev/vite-plugin",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Vite plugin for Omniview plugin development. Redirects shared dependency imports to the host app's singleton instances via window.__OMNIVIEW_SHARED__.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "author": "Omniview",
@@ -0,0 +1,15 @@
1
+ // Auto-generated shim for 'react/compiler-runtime'
2
+ // DO NOT EDIT -- regenerate with: pnpm --filter @omniviewdev/vite-plugin generate-shims
3
+
4
+ const mod = window.__OMNIVIEW_SHARED__['react/compiler-runtime'];
5
+
6
+ if (!mod) {
7
+ throw new Error(
8
+ '[omniview] Shared dependency "react/compiler-runtime" is not available on window.__OMNIVIEW_SHARED__. ' +
9
+ 'Ensure the Omniview host app is running and shared deps are exported before loading this plugin.'
10
+ );
11
+ }
12
+
13
+ export const c = mod.c;
14
+
15
+ export default mod.default !== undefined ? mod.default : mod;