Let a plugin use additional Element UI components without bundling `vue`
The DMX Webclient globally registers all Element UI components it uses, so a plugin can make use of them without any extra measure.
But when a plugin needs additional Element UI components and imports them (e.g. import { Table, TableColumn } from 'element-ui'
) then the (transitive) vue
dependency is bundled along with the plugin production build. Besides increasing the plugin's footprint, 2 (or even more) instances of the vue
library exist at runtime, which can cause serious problems e.g. missing reactivity.
This is a follow-up of dmx-plugins/dmx-tableview#47 (closed)
@mukil FYI