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