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
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 1m4s
This commit is contained in:
parent
1c20450b05
commit
e9f6af41a1
11
index.html
11
index.html
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user