Jose Garcia
03/26/2024, 3:59 PMSvyatoslav Kuzmich [JB]
03/26/2024, 4:05 PMJose Garcia
03/26/2024, 4:10 PMSvyatoslav Kuzmich [JB]
03/26/2024, 4:22 PMJose Garcia
03/26/2024, 4:27 PMOliver.O
03/26/2024, 5:45 PMfun main() {
CanvasBasedWindow("App Name") {
// ...
}
}
looks like this on JS
fun main() {
onWasmReady {
CanvasBasedWindow("App Name") {
// ...
}
}
}
Apart from the above and configuring the build for a js
target, no other changes to your app are required.Yogeshvu
03/27/2024, 9:43 AMOliver.O
03/27/2024, 9:49 AMJose Garcia
03/27/2024, 1:45 PM.js
file. I will try again with onWAsmReady {}
Yogeshvu
03/29/2024, 5:13 PMOliver.O
03/29/2024, 5:28 PMOliver.O
03/29/2024, 5:31 PMYogeshvu
03/29/2024, 5:42 PMOliver.O
03/30/2024, 10:10 PMJose Garcia
04/01/2024, 4:30 PMOliver.O
04/01/2024, 5:02 PMChris Athanas
04/22/2024, 2:48 AMjsMain
target and it works on all my iOS devices and Safari now!
Everything works, but i’m seeing these error/warnings in the console, not sure what I need to do to add these NPM modules… or is there something else going on?
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
- install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "os": false }
Module not found: Error: Can't resolve 'path' in '/Volumes/TRS-83/Downloads/KotlinProject/build/js/packages/app/kotlin'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
Oliver.O
04/22/2024, 10:44 AM