Error while creating a custom plugin #3468
-
Hi All, As newbie to Capacitor, I was trying to create a custom plugin Used command Followed by While I run the build command, I get the following output
here is the node and npm versions:
When I look into the generated file
Whereas the dist/web.js seems to be fine with following
Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@dhavalkshah Luckily that's just a warning. It's safe to ignore. If you'd like to get rid of it, you can change FYI |
Beta Was this translation helpful? Give feedback.
@dhavalkshah Luckily that's just a warning. It's safe to ignore. If you'd like to get rid of it, you can change
target
intsconfig.json
toes2017
(that's what we're doing in Capacitor 3 anyway, see #3320).FYI
dist/plugin.js
is the bundled version of your plugin (exported towindow
) anddist/esm
is for Capacitor apps that use a bundler and import your plugin.