Invalid assignment [./~/wargo-loader??ref--0!./src/main.rs:5,0][main_d6f3bb21cd455f866c7c.js:86707,47]
and this is what I am doing with my code before all that nonsense hashing.
if (typeof WebAssembly === 'object') {
if (process.env.NODE_ENV === 'development') {
setTimeout(() => {
UberFunctions = getBinaryFunctions(window.Module)
window.UberFunctions = UberFunctions
}, 1000)
} else {
const wasm = require('../src/main.rs')
wasm.initialize({ noExitRuntime: true })
.then(mod => {
UberFunctions = getBinaryFunctions(mod)
window.UberFunctions = UberFunctions
console.log(UberFunctions.add(1, 2), UberFunctions.subtract(5, 4), UberFunctions.multiply(20, 500), UberFunctions.divide(24.48, 400), 24.48 / 400)
})
}
setTimeout(() => {
console.log(UberFunctions.add(1, 2), UberFunctions.subtract(5, 4), UberFunctions.multiply(20, 500), UberFunctions.divide(24.48, 400), 24.48 / 400)
}, 1000)
}
Do you have any suggestions. Makes building rust to WASM super fast great tool!