Skip to content

Commit 2b82eab

Browse files
committed
export home default + allowjs
1 parent 49bf443 commit 2b82eab

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/pages/home/Home.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {useState, useEffect, useRef} from "react";
33
import LevelComponent from "../../components/LevelComponent";
44
import { main } from "./solarsystem.js";
55

6-
function Home() {
6+
export default function Home() {
77

88
const canvasRef = useRef<HTMLCanvasElement | null>(null);
99

@@ -33,11 +33,13 @@ function Home() {
3333
onClose={() => setIsVisible(false)}
3434
/>
3535
)}
36+
3637
<header>
3738
<div className={styles["header-brand"]}>
38-
<h1>Glorpython</h1>
39+
<h1>glorpython</h1>
3940
</div>
4041
</header>
42+
4143
<canvas ref={canvasRef} className={styles.solarsystem}></canvas>
4244
</div>
4345
);

tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"module": "esnext",
77
"types": ["vite/client"],
88
"skipLibCheck": true,
9+
"allowJs": true,
910

1011
/* Bundler mode */
1112
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)