vike-react 0.6.12 → 0.6.13
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/config.js +1 -1
- package/dist/helpers/clientOnly.js +1 -6
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
export { clientOnly };
|
|
2
2
|
import React, { Suspense, forwardRef, lazy, useEffect, useState, } from 'react';
|
|
3
3
|
function clientOnly(load) {
|
|
4
|
-
|
|
5
|
-
// Client side: always bundled by Vite, import.meta.env.SSR === false
|
|
6
|
-
// Server side: may or may not be bundled by Vite, import.meta.env.SSR === true || import.meta.env === undefined
|
|
7
|
-
//@ts-expect-error
|
|
8
|
-
(_a = import.meta).env ?? (_a.env = { SSR: true });
|
|
9
|
-
if (import.meta.env.SSR) {
|
|
4
|
+
if (!globalThis.__VIKE__IS_CLIENT) {
|
|
10
5
|
return (props) => React.createElement(React.Fragment, null, props.fallback);
|
|
11
6
|
}
|
|
12
7
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"repository": "https://github.com/vikejs/vike-react",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=19",
|
|
34
34
|
"react-dom": ">=19",
|
|
35
|
-
"vike": ">=0.4.
|
|
35
|
+
"vike": ">=0.4.242"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@biomejs/biome": "^1.9.4",
|