Adding dependency to custom plugin (New Platform)

I am using node scripts/generate_plugin my_plugin_name # replace "my_plugin_name" with your desired plugin name to create a custom plugin with Kibana 7.8.

How i can add a dependency, only to my plugin, like package.json with the legacy. ?
Before new kibana platform, i use yarn add iside my plugin path to add my dependencies, and those are saved into package.json of the plugin

1 Like

Hi, sorry for the late reply,
Yes, you can install as many packages from npm as you like. They should be included in the 3rd party plugin's downloaded archive because Kibana doesn't install them when your plugin is installed (to support offline install)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.