@modern-js/main-doc 0.0.0-nightly-20240309170640 → 0.0.0-nightly-20240311170702

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.
@@ -357,7 +357,7 @@ Modern.js 建议必须有根 Layout 和根 Loading。
357
357
  ```ts title="routes/user/page.data.ts"
358
358
  import { redirect } from '@modern-js/runtime/router';
359
359
 
360
- export const loader () => {
360
+ export const loader = () => {
361
361
  const user = await getUser();
362
362
  if (!user) {
363
363
  return redirect('/login');
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240309170640",
18
+ "version": "0.0.0-nightly-20240311170702",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20240309170640"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20240311170702"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20240309170640"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20240311170702"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.14.0",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/builder-doc": "0.0.0-nightly-20240309170640",
43
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240309170640"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20240311170702",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240311170702"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",