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>
|
</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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user