You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 thewebDir
folder we could have aexportModuleRuntime
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 importThe text was updated successfully, but these errors were encountered: