@modern-js/plugin-docsite 0.0.0-canary-20220811025450 → 0.0.0-canary-20220811045339
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,6 +1,6 @@
|
|
1
1
|
# @modern-js/plugin-docsite
|
2
2
|
|
3
|
-
## 0.0.0-canary-
|
3
|
+
## 0.0.0-canary-20220811045339
|
4
4
|
|
5
5
|
### Minor Changes
|
6
6
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
### Patch Changes
|
12
12
|
|
13
13
|
- Updated dependencies [f6fe02230]
|
14
|
-
- @modern-js/webpack@0.0.0-canary-
|
14
|
+
- @modern-js/webpack@0.0.0-canary-20220811045339
|
15
15
|
- @modern-js/utils@1.9.0
|
16
16
|
|
17
17
|
## 1.2.13
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import
|
2
|
+
import ReactDOM from 'react-dom/client';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
import { BrowserRouter as Router } from 'react-router-dom';
|
5
5
|
import DocsNav from './DocsNav';
|
@@ -38,4 +38,5 @@ const App = () => (
|
|
38
38
|
const root = document.createElement('div');
|
39
39
|
root.setAttribute('id', 'root');
|
40
40
|
document.body.append(root);
|
41
|
-
|
41
|
+
const root = ReactDOM.createRoot(document.querySelector('#root'));
|
42
|
+
root.render(<App />);
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "0.0.0-canary-
|
14
|
+
"version": "0.0.0-canary-20220811045339",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@mdx-js/mdx": "^1.6.22",
|
39
39
|
"@mdx-js/react": "^1.6.22",
|
40
40
|
"@modern-js/utils": "^1.9.0",
|
41
|
-
"@modern-js/webpack": "^0.0.0-canary-
|
41
|
+
"@modern-js/webpack": "^0.0.0-canary-20220811045339",
|
42
42
|
"antd": "^4.16.13",
|
43
43
|
"core-js": "^3.17.2",
|
44
44
|
"github-slugger": "^1.4.0",
|
@@ -47,8 +47,8 @@
|
|
47
47
|
"mdast-util-to-string": "^2.0.0",
|
48
48
|
"path-browserify": "^1.0.1",
|
49
49
|
"prism-react-renderer": "^1.2.1",
|
50
|
-
"react": "^
|
51
|
-
"react-dom": "^
|
50
|
+
"react": "^18",
|
51
|
+
"react-dom": "^18",
|
52
52
|
"react-live": "^2.3.0",
|
53
53
|
"react-router-dom": "^5.3.0",
|
54
54
|
"sort-paths": "^1.1.1",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import
|
2
|
+
import ReactDOM from 'react-dom/client';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
import { BrowserRouter as Router } from 'react-router-dom';
|
5
5
|
import DocsNav from './DocsNav';
|
@@ -38,4 +38,5 @@ const App = () => (
|
|
38
38
|
const root = document.createElement('div');
|
39
39
|
root.setAttribute('id', 'root');
|
40
40
|
document.body.append(root);
|
41
|
-
|
41
|
+
const root = ReactDOM.createRoot(document.querySelector('#root'));
|
42
|
+
root.render(<App />);
|