Fix MuJoCo WASM loader imports
build / setup (compute matrix) (push) Has been cancelled
build / ${{ matrix.label }} (push) Has been cancelled
build / macos-15-arm64-studio (push) Has been cancelled
build / ubuntu-24.04-clang-18-studio (push) Has been cancelled
build / ubuntu-24.04-gcc-14-studio (push) Has been cancelled
build / windows-2025-ninja-studio (push) Has been cancelled
build / ubuntu-24.04-clang-18-wasm (push) Has been cancelled
build / ubuntu-24.04-clang-18-mjx (push) Has been cancelled

This commit is contained in:
2026-08-19 17:04:30 +08:00
parent 3dd2bc3b52
commit ac4f431ff5
2 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -16,8 +16,6 @@ import * as THREE from "three"
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"
import loadMujoco from "../dist/mujoco.js"
declare function loadMujoco(): Promise<MainModule>;
let mujoco: any;
const modelXml = `
@@ -483,7 +481,7 @@ async function main() {
} catch (error) {
console.error('Initialization error: ', error);
app.dispose();
app?.dispose();
}
}
main();
-2
View File
@@ -15,8 +15,6 @@
import { MainModule, MjData, MjModel } from "../../dist/mujoco"
import loadMujoco from "../../dist/mujoco.js"
declare function loadMujoco(): Promise<MainModule>;
async function main() {
const mujoco: MainModule = await loadMujoco();