Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Export an ESM from core & plugins #4336

Open
NemoStein opened this issue Mar 13, 2021 · 0 comments
Open

feat: Export an ESM from core & plugins #4336

NemoStein opened this issue Mar 13, 2021 · 0 comments

Comments

@NemoStein
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants