build: use tsconfig bundler (#3581)

This commit is contained in:
Alex Yang
2023-08-04 17:00:36 -07:00
committed by GitHub
parent bbf5f0efe0
commit 97de0ef5b4
21 changed files with 116 additions and 221 deletions

View File

@@ -21,7 +21,7 @@
"react": "18.3.0-canary-1fdacbefd-20230630",
"react-dom": "18.3.0-canary-1fdacbefd-20230630",
"react-server-dom-webpack": "18.3.0-canary-1fdacbefd-20230630",
"waku": "0.12.1"
"waku": "0.14.0"
},
"devDependencies": {
"@types/react": "^18.2.17",

View File

@@ -4,7 +4,7 @@ export default defineRouter(
async id => {
switch (id) {
case 'index': {
const { default: AppCreator } = await import('./src/app.js');
const { default: AppCreator } = await import('./app.js');
return AppCreator(id);
}
default:

View File

@@ -29,7 +29,7 @@
<div class="spinner"></div>
</div>
<!--/placeholder1-->
<script src="./src/index.tsx" defer type="module"></script>
<script src="./index.tsx" defer type="module"></script>
<!--placeholder2-->
<!--/placeholder2-->
</body>

Binary file not shown.

View File

@@ -10,7 +10,8 @@
"skipLibCheck": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"jsxImportSource": "react"
},
"include": ["src", "entries.ts"],
"references": [