change id of root of app so styling workds
This commit is contained in:
parent
56f489e44c
commit
58db12967a
@ -7,7 +7,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="root" />
|
<div id="app" />
|
||||||
<div id="portal" />
|
<div id="portal" />
|
||||||
<script type="module" src="/src/main.ts" defer></script>
|
<script type="module" src="/src/main.ts" defer></script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -7,7 +7,7 @@ document.addEventListener("touchstart", () => {
|
|||||||
document.body.setAttribute("inputMode", "touch")
|
document.body.setAttribute("inputMode", "touch")
|
||||||
})
|
})
|
||||||
|
|
||||||
const root = document.querySelector<HTMLDivElement>("#root")!
|
const root = document.querySelector<HTMLDivElement>("#app")!
|
||||||
mount(App, { root, maxFrameMs: 16 })
|
mount(App, { root, maxFrameMs: 16 })
|
||||||
|
|
||||||
document.body.addEventListener("contextmenu", (e) => {
|
document.body.addEventListener("contextmenu", (e) => {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
@ -20,5 +20,6 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"jsx": "preserve"
|
"jsx": "preserve"
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"],
|
||||||
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
9
tsconfig.node.json
Normal file
9
tsconfig.node.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": true,
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Node",
|
||||||
|
"allowSyntheticDefaultImports": true
|
||||||
|
},
|
||||||
|
"include": ["vite.config.ts"]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user