elsa-workflows / elsa-designer

A standards-based Workflow Designer built with StencilJS
MIT License
263 stars 89 forks source link

how to use it in vuejs ? #18

Open wjkhappy14 opened 4 years ago

wjkhappy14 commented 4 years ago

i do as the document 👍 https://stenciljs.com/docs/vue but can't find the loader

wjkhappy14 commented 4 years ago

import { applyPolyfills, defineCustomElements } from 'elsa-workflow-designer/loader';

Vue.config.productionTip = false; Vue.config.ignoredElements = [/elsa-\w*/]; applyPolyfills().then(() => { defineCustomElements(); });

sfmskywalker commented 4 years ago

I think that the issue is that the designer has a dependency on BSComponents, which is also built with StencilJS, and needs some preparation in order to be packaged with Elsa Designer.

However, I'm rewriting the designer for Elsa 2, which will not take any dependencies on other StencilJS components, which should make it easier for me to apply what the StencilJS documentation explains.

See also #16