Commit a187442
taojiu
feat(engine): 删除不用的导入,增加server配置
- 移除了 react-dom 的 render 和 unmountComponentAtNode 导入
- 添加了 createRoot 导入,用于 React 18 的新特性
- 在 Vite 配置中添加了服务器端口和禁用 HMR1 parent 4712f36 commit a187442
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments