@modern-js/main-doc 0.0.0-next-1681826816284 → 0.0.0-next-1681905621669
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/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
# @modern-js/main-doc
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1681905621669
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 60a81d05db: feat: add ssr.inlineScript for use inline json instead inline script when ssr
|
|
8
8
|
feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本
|
|
9
|
-
-
|
|
9
|
+
- 432ac8b884: chore(cli): improve commands descriptions
|
|
10
10
|
|
|
11
11
|
chore(cli): 优化命令的描述文案
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- de84d94942: feat: add optional dynamic routes docs
|
|
14
14
|
feat: 添加可选动态路由文档
|
|
15
|
-
- Updated dependencies [
|
|
16
|
-
- Updated dependencies [
|
|
17
|
-
|
|
15
|
+
- Updated dependencies [fefd1c5645]
|
|
16
|
+
- Updated dependencies [1f34dbae90]
|
|
17
|
+
- Updated dependencies [b965df261f]
|
|
18
|
+
- @modern-js/builder-doc@0.0.0-next-1681905621669
|
|
18
19
|
|
|
19
20
|
## 2.13.4
|
|
20
21
|
|
|
@@ -33,7 +33,7 @@ Then execute the `dev` or `build` command, and you can see Modern.js automatical
|
|
|
33
33
|
node_modules
|
|
34
34
|
└─ .modern-js
|
|
35
35
|
└─ main
|
|
36
|
-
├─ bootstrap.
|
|
36
|
+
├─ bootstrap.jsx # real entry code
|
|
37
37
|
├─ index.js # asynchronous entry file
|
|
38
38
|
└─ index.html
|
|
39
39
|
```
|
|
@@ -41,7 +41,7 @@ node_modules
|
|
|
41
41
|
The `index.js` reads as follows:
|
|
42
42
|
|
|
43
43
|
```js
|
|
44
|
-
import('./bootstrap.
|
|
44
|
+
import('./bootstrap.jsx');
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
At this point, you can consume any remote modules in the current page.
|
|
@@ -36,7 +36,7 @@ export default defineConfig({
|
|
|
36
36
|
node_modules
|
|
37
37
|
└─ .modern-js
|
|
38
38
|
└─ main
|
|
39
|
-
├─ bootstrap.
|
|
39
|
+
├─ bootstrap.jsx # 真正的入口代码
|
|
40
40
|
├─ index.js # 异步入口文件(asynchronous boundary)
|
|
41
41
|
└─ index.html
|
|
42
42
|
```
|
|
@@ -44,7 +44,7 @@ node_modules
|
|
|
44
44
|
其中 `index.js` 的内容如下:
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
|
-
import('./bootstrap.
|
|
47
|
+
import('./bootstrap.jsx');
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
此时,就可以在当前页面中消费任意的远程模块了。
|
package/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-1681905621669",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"registry": "https://registry.npmjs.org/",
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
|
20
|
+
"@modern-js/builder-doc": "0.0.0-next-1681905621669"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"classnames": "^2",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"fs-extra": "^10",
|
|
30
30
|
"@types/node": "^16",
|
|
31
31
|
"@types/fs-extra": "^9",
|
|
32
|
-
"@modern-js/doc
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-
|
|
32
|
+
"@modern-js/builder-doc": "0.0.0-next-1681905621669",
|
|
33
|
+
"@modern-js/doc-tools": "0.0.0-next-1681905621669",
|
|
34
|
+
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1681905621669"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "modern dev",
|