So I have been struggling to get any JS for Capacitor plugins to work. After two days of deep diving into the issue, I believe that the bundler that auto installed when you add a platform to a mobile app project has been deprecated.
“[warn] The bundledWebRuntime configuration option has been deprecated. Please, use a bundler to bundle Capacitor and its plugins.”
This has been causing both import and require within JS to throw an error in the dev console. Most of the Capacitor plugins need import or require to use.
Is this something that can be updated on Wappler’s end? Or is there a workaround to get my mobile app code bundled?
I have tried using Rollup and Webpack but can’t figure out what the entry file within the Wappler project is.
Here is the full output as soon as I add iOS to a mobile project.
If this is not a bug on Wappler’s end, can you guys please give me some guidance on how to get Capacitor plugins to work on mobile.