fix(ihm_client): charger WASM ESM sans export default dans index.html
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 1m4s

This commit is contained in:
4NK CI Bot 2025-09-18 16:01:53 +00:00
parent 1c20450b05
commit e9f6af41a1

View File

@ -17,19 +17,14 @@
</div>
<!-- <script type="module" src="/src/index.ts"></script> -->
<script type="module">
// Initialize WASM first
import init, * as sdk from './pkg/sdk_client.js';
// Charge le module WASM (ESM auto-start, pas d'export default)
import './pkg/sdk_client.js';
// Initialize the application
// Initialise l'application
import { init as initRouter } from '/src/router.ts';
(async () => {
try {
// Initialize WASM
await init();
console.log('WASM initialized successfully');
// Initialize the router
await initRouter();
} catch (error) {
console.error('Failed to initialize application:', error);