feat: implement dynamic platform entry point system

- Add src/main.ts as dynamic entry point that loads platform-specific code
- Update index.html to use dynamic main.ts instead of hardcoded main.web.ts
- Remove external capacitor config from vite.config.common.mts to ensure proper bundling
- Enables consistent platform detection across all build targets
- Use proper logger utility instead of console.log for platform detection logging
This commit is contained in:
Matthew Raymer
2025-08-20 06:40:48 +00:00
parent a37fb51876
commit fbcd3a50ca
3 changed files with 27 additions and 5 deletions

View File

@@ -11,6 +11,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.web.ts"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>