@modern-js/main-doc 2.49.2 → 2.49.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ sidebar_position: 3
|
|
40
40
|
|
41
41
|
然后修改一下默认的代码和新增文件:
|
42
42
|
|
43
|
-
**重命名 `./
|
43
|
+
**重命名 `./packages/components/src/index.tsx`**
|
44
44
|
|
45
45
|
```tsx
|
46
46
|
import './index.css';
|
@@ -54,7 +54,7 @@ export default function ({ text }: { text: string }) {
|
|
54
54
|
}
|
55
55
|
```
|
56
56
|
|
57
|
-
**新增 `./
|
57
|
+
**新增 `./packages/components/src/index.css`**
|
58
58
|
|
59
59
|
```css
|
60
60
|
.log {
|
package/package.json
CHANGED
@@ -15,17 +15,17 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.49.
|
18
|
+
"version": "2.49.4",
|
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": "2.49.
|
25
|
+
"@modern-js/sandpack-react": "2.49.4"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
|
-
"@modern-js/builder-doc": "^2.49.
|
28
|
+
"@modern-js/builder-doc": "^2.49.4"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"classnames": "^2",
|
@@ -39,8 +39,8 @@
|
|
39
39
|
"@rspress/shared": "1.18.2",
|
40
40
|
"@types/node": "^16",
|
41
41
|
"@types/fs-extra": "9.0.13",
|
42
|
-
"@modern-js/doc-plugin-auto-sidebar": "2.49.
|
43
|
-
"@modern-js/builder-doc": "2.49.
|
42
|
+
"@modern-js/doc-plugin-auto-sidebar": "2.49.4",
|
43
|
+
"@modern-js/builder-doc": "2.49.4"
|
44
44
|
},
|
45
45
|
"scripts": {
|
46
46
|
"dev": "rspress dev",
|