Open
Description
Feature Request
Description
Currently, bundledWebRuntime
outputs a single script with Capacitor functionalities.
As webstandards marches forward and ESM becomes more popular, being able to include Capacitor as a module without a bundler is a step towards the future of the web.
Platform(s)
Web, maybe all others.
Preferred Solution
The same way we can set bundledWebRuntime
to copy the bundle to the webDir
folder we could have a exportModuleRuntime
that would output all modules, possibly each in its own file.
Alternatives
I've tried to copy the node_modules/@capacitor/*
dist folders, but it didn't work.
E.g.: @capacitor/filesystem/dist/esm/index.js
still uses a bare import