vike-react 0.6.2 → 0.6.3

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.
@@ -3,5 +3,4 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  import React from 'react';
6
- import './Loading.css';
7
6
  declare function LoadingComponent(): React.JSX.Element;
@@ -2,7 +2,11 @@ export default {
2
2
  component: LoadingComponent,
3
3
  };
4
4
  import React from 'react';
5
- import './Loading.css';
5
+ /* We can't import it here: https://github.com/vikejs/vike/issues/2460
6
+ * - We import it inside onRenderClient.js instead.
7
+ * - We'll be able to do it if Vite + Rolldown always transpiles the server-side.
8
+ import './Loading.css'
9
+ */
6
10
  function LoadingComponent() {
7
11
  return (React.createElement("div", { style: {
8
12
  width: '100%',
@@ -1,3 +1,4 @@
1
1
  export { onRenderClient };
2
2
  import type { OnRenderClientAsync } from 'vike/types';
3
+ import './Loading.css';
3
4
  declare const onRenderClient: OnRenderClientAsync;
@@ -6,6 +6,7 @@ import { getPageElement } from './getPageElement.js';
6
6
  import { callCumulativeHooks } from '../utils/callCumulativeHooks.js';
7
7
  import { applyHeadSettings } from './applyHeadSettings.js';
8
8
  import { resolveReactOptions } from './resolveReactOptions.js';
9
+ import './Loading.css'; // See comment inside Loading.tsx
9
10
  let root;
10
11
  const onRenderClient = async (pageContext) => {
11
12
  pageContext._headAlreadySet = pageContext.isHydration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-react",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "repository": "https://github.com/vikejs/vike-react",
5
5
  "type": "module",
6
6
  "exports": {