Replies: 3 comments
-
I assume ES6 modules were chosen because capacitor is written in TS. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your reply. I understand, but still it would be no problem to transpile TS to CommonJS and thus make it widely available without problems. Wouldn't this be a good idea? |
Beta Was this translation helpful? Give feedback.
0 replies
-
My understanding is that:
If there's a particular issue with the plugin output and the latest stable version of webpack, rollup, etc, please open an issue. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am using Capacitor together with Gatsby. This works without any problems.
However, I have some trouble when using the capacitor-fcm and it seems that the module type of the build output is causing it, as it is ES6 and not CommonJS.
The plugin's source code looks like it was created with the plugin-template in this repository.
So my questions are:
Don't get me wrong. I am not very familiar with the JS standards and babel, etc. Maybe I just use it in a wrong way..?
Thanks in advance and keep up the great work!
Beta Was this translation helpful? Give feedback.
All reactions