You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "kalwinskidawid (via GitHub)" <gi...@apache.org> on 2023/09/29 12:26:28 UTC

[GitHub] [cordova] kalwinskidawid closed a discussion: Support ES6

GitHub user kalwinskidawid closed a discussion: Support ES6

Hi,
Does cordova-android support es6? I mean I know it's just chrome engine, so the engine supports ES6. However, when I type `"type: "module"` in `package.json` then I get the error `Could not load API for android project C:\n[...]\nCordova API.js`. 
Is there any way to be able to use ES6 in cordova? 
For example:
I have `class Firebase { ... }` and I'd like to `import Firebase from './firebase.js'` in my `app.js`

GitHub link: https://github.com/apache/cordova/discussions/434

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org